fix db concurrency

This commit is contained in:
oleg 2015-07-07 23:26:49 +03:00
parent cfe9c682ae
commit 75799493c0
2 changed files with 6 additions and 5 deletions

9
db.js
View File

@ -86,14 +86,15 @@ nlevel.DocsSection.prototype._beforePut = function(docs, callback) {
self.beforePut(docs, this.slot());
},
function() {
self._beforePutInProgress = false;
this.pass(null);
},
callback
);
};
nlevel.DocsSection.prototype._afterPut = function(docs, callback) {
this._beforePutInProgress = false;
callback();
};
function pickProjectName(build) {
return build.project.name;
}

View File

@ -6,7 +6,7 @@
"nci": "bin/nci"
},
"scripts": {
"test": "mocha --bail --reporter=spec test/index --timeout 3000",
"test": "mocha --bail --reporter=spec test/index --timeout 4000",
"dev": "gulp",
"sync": "npm install && npm prune && bower install && bower prune"
},