Actually use Slava's function in oplog tailing.

Tests pass, but I have not confirmed that it actually has the desired
end-to-end effect.
This commit is contained in:
David Glasser
2013-10-10 17:16:36 -07:00
parent 81d77f916b
commit 73b45f2fa2

View File

@@ -137,8 +137,13 @@ MongoConnection.prototype._observeChangesWithOplog = function (
LocalCollection._modify(newDoc, op.o);
handleDoc(id, newDoc);
} else {
// XXX for not-currently-published docs, if we can guarantee the
// irrelevance of the change, we can skip it
// If the selector is not affected by the modifier, no need to do
// anything!
if (!LocalCollection._isSelectorAffectedByModifier(
cursorDescription.selector, op.o)) {
return;
}
curiousity.set(id, op.ts.toString());
beCurious();
return;