[Groonga-commit] groonga/gcs [master] Failed to convert to grn dump record

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Mon Aug 13 13:55:51 JST 2012


SHIMODA Hiroshi	2012-08-13 13:55:51 +0900 (Mon, 13 Aug 2012)

  New Revision: 700083e962469974d0ca74d40ae0bbb7b8bf6cb2
  https://github.com/groonga/gcs/commit/700083e962469974d0ca74d40ae0bbb7b8bf6cb2

  Log:
    Failed to convert to grn dump record

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+1 -1)
===================================================================
--- lib/database/domain.js    2012-08-13 13:54:48 +0900 (612f6ea)
+++ lib/database/domain.js    2012-08-13 13:55:51 +0900 (ddb5efa)
@@ -361,7 +361,7 @@ Domain.prototype = {
   toGrnDumpRecord: function(record) {
     var grnDumpRecord = {};
     Object.keys(record).forEach(function(key) {
-      var grnDumpKey = key == '_key' ? 'id' : key ;
+      var grnDumpKey = key == 'id' ? '_key' : key ;
       grnDumpRecord[grnDumpKey] = record[key];
     });
     return grnDumpRecord;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index