Commit e40d15b8 authored by actb's avatar actb

changed wal set in lever.js for batchseg

parent 838a7c0c
......@@ -1299,9 +1299,9 @@ class LeverDB {
}
// set write ahead mode on the database -- makes concurrent access possible
setWAL(fnCallback) {
var sqlCmd = "PRAGMA journal_mode = WAL";
this._lDB.exec(sqlCmd,function(){
fnCallback();
var sqlCmd = "PRAGMA journal_mode = WAL;pragma journal mode";
this._lDB.all(sqlCmd,function(err,rows){
fnCallback();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment