[Groonga-commit] groonga/gcs [master] Convert id to string

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Dec 7 15:15:51 JST 2012


YUKI Hiroshi	2012-12-07 15:15:51 +0900 (Fri, 07 Dec 2012)

  New Revision: 67084f14a1b28f19471efecde3d7d8ec702dd5a6
  https://github.com/groonga/gcs/commit/67084f14a1b28f19471efecde3d7d8ec702dd5a6

  Log:
    Convert id to string

  Modified files:
    lib/database/storage.js

  Modified: lib/database/storage.js (+1 -1)
===================================================================
--- lib/database/storage.js    2012-12-07 15:12:50 +0900 (4fd9563)
+++ lib/database/storage.js    2012-12-07 15:15:51 +0900 (4232195)
@@ -26,7 +26,7 @@ FileStorage.prototype = {
   // string instead of full id.
   idToFileName: function(id) {
     var shasum = crypto.createHash('sha1');
-    shasum.update(id);
+    shasum.update(String(id));
     return shasum.digest('hex');
   },
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る