[Groonga-commit] groonga/gcs [master] Create directory correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Dec 7 16:31:39 JST 2012


YUKI Hiroshi	2012-12-07 16:31:39 +0900 (Fri, 07 Dec 2012)

  New Revision: 555ed183bb7b4e629151701022b0e2d266ce74a1
  https://github.com/groonga/gcs/commit/555ed183bb7b4e629151701022b0e2d266ce74a1

  Log:
    Create directory correctly

  Modified files:
    lib/database/storage.js

  Modified: lib/database/storage.js (+1 -2)
===================================================================
--- lib/database/storage.js    2012-12-07 15:22:50 +0900 (4232195)
+++ lib/database/storage.js    2012-12-07 16:31:39 +0900 (6a3d818)
@@ -36,8 +36,7 @@ FileStorage.prototype = {
   },
 
   saveSync: function(document) {
-    if (!this.directoryExistsSync())
-      mkdirp.sync(this.databaseDirectory);
+    mkdirp.sync(this.directoryPath);
 
     var filePath = this.idToFilePath(document.id);
     if (path.existsSync(filePath))
-------------- next part --------------
HTML����������������������������...
Download 



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