Pipeling works, needs testing

pull/2/head
Louis Chatriot 12 years ago
parent e7294a98e4
commit e172c2a7f6
  1. 5
      lib/datastore.js

@ -337,7 +337,12 @@ Datastore.prototype._persistNewState = function (newDocs, cb) {
});
};
Datastore.prototype.persistNewState = function (newDocs, cb) {
if (this.pipeline) {
this.persistenceExecutor.push({ this: this, fn: this._persistNewState, arguments: [newDocs] });
cb (); // Return right away with no error
} else {
this._persistNewState(newDocs, cb);
}
};

Loading…
Cancel
Save