mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user