diff options
Diffstat (limited to 'node/ejdb.js')
-rw-r--r-- | node/ejdb.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/ejdb.js b/node/ejdb.js index 66abc00..8d5eb4f 100644 --- a/node/ejdb.js +++ b/node/ejdb.js @@ -7,7 +7,7 @@ try { } var EJDBImpl = ejdblib.NodeEJDB; -const DEFAULT_OPEN_MODE = (ejdblib.JBOWRITER | ejdblib.JBOCREAT); +const DEFAULT_OPEN_MODE = (ejdblib.JBOWRITER | ejdblib.JBOCREAT | ejdblib.JBOTSYNC); var EJDB = function(dbFile, openMode) { Object.defineProperty(this, "_impl", { value : new EJDBImpl(dbFile, (openMode > 0) ? openMode : DEFAULT_OPEN_MODE), |