Compare commits

...

2 Commits

Author SHA1 Message Date
David Pineau d9bfa50643 Fixup - Remove IRM from package.json 2016-06-20 20:32:49 +02:00
David Pineau 48625c6599 Add context to Transaction's commit call 2016-05-19 15:35:10 +02:00
2 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ class IndexTransaction {
* *
* @returns {undefined} * @returns {undefined}
*/ */
commit(cb) { commit(context, cb) {
if (this.closed) { if (this.closed) {
return cb(propError('alreadyCommitted', return cb(propError('alreadyCommitted',
'transaction was already committed')); 'transaction was already committed'));
@ -142,7 +142,7 @@ class IndexTransaction {
// The array-of-operations variant of the `batch` method // The array-of-operations variant of the `batch` method
// allows passing options such has `sync: true` whereas the // allows passing options such has `sync: true` whereas the
// chained form does not. // chained form does not.
return this.db.batch(this.operations, writeOptions, cb); return this.db.batch(context, this.operations, writeOptions, cb);
} }
} }

View File

@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/scality/IronMan-Arsenal.git" "url": "git+https://github.com/scality/Arsenal.git"
}, },
"contributors": [ "contributors": [
{ "name": "David Pineau", "email": "" }, { "name": "David Pineau", "email": "" },
@ -14,15 +14,15 @@
], ],
"license": "ISC", "license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/scality/IronMan-Arsenal/issues" "url": "https://github.com/scality/Arsenal/issues"
}, },
"homepage": "https://github.com/scality/IronMan-Arsenal#readme", "homepage": "https://github.com/scality/Arsenal#readme",
"dependencies": { "dependencies": {
}, },
"devDependencies": { "devDependencies": {
"eslint": "^2.4.0", "eslint": "^2.4.0",
"eslint-config-airbnb": "^6.0.0", "eslint-config-airbnb": "^6.0.0",
"eslint-config-ironman": "scality/IronMan-Guidelines#rel/1.0", "eslint-config-ironman": "scality/Guidelines#rel/1.1",
"level": "^1.3.0", "level": "^1.3.0",
"mocha": "^2.3.3", "mocha": "^2.3.3",
"temp": "^0.8.3" "temp": "^0.8.3"