[Groonga-commit] groonga/gcs [master] Define variable locally (to avoid global leak)

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 6 19:47:07 JST 2012


YUKI Hiroshi	2012-12-06 19:47:07 +0900 (Thu, 06 Dec 2012)

  New Revision: be74604074c076ec3120a4a1b981acd40cf4176d
  https://github.com/groonga/gcs/commit/be74604074c076ec3120a4a1b981acd40cf4176d

  Log:
    Define variable locally (to avoid global leak)

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+2 -1)
===================================================================
--- lib/database/domain.js    2012-12-06 19:43:49 +0900 (3df310d)
+++ lib/database/domain.js    2012-12-06 19:47:07 +0900 (04543bd)
@@ -578,6 +578,7 @@ Domain.prototype = {
   },
 
   addDocumentSync: function(document) {
+    // this.storeDocument(document); => it should be another class DocumentStore implemented in database/document.js
     this.indexDocumentSync(document);
     return this;
   },
@@ -592,7 +593,7 @@ Domain.prototype = {
       }
     }, this);
 
-    grnDumpRecord = this.toGrnDumpRecord(record);
+    var grnDumpRecord = this.toGrnDumpRecord(record);
     this.context.commandSync('load', {
       table: this.tableName,
       values: JSON.stringify([grnDumpRecord])
-------------- next part --------------
HTML����������������������������...
Télécharger 



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