mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Use LocalCollection._canSelectorBecomeTrueByModifier in oplog fetching pruning
This commit is contained in:
@@ -173,13 +173,8 @@ observeChangesWithOplog = function (cursorDescription,
|
||||
newDoc._id = id;
|
||||
LocalCollection._modify(newDoc, op.o);
|
||||
handleDoc(id, sharedProjectionFn(newDoc));
|
||||
} else if (LocalCollection._isSelectorAffectedByModifier(
|
||||
} else if (LocalCollection._canSelectorBecomeTrueByModifier(
|
||||
cursorDescription.selector, op.o)) {
|
||||
// XXX _isSelectorAffectedByModifier should actually be
|
||||
// _canModifierChangeSelectorToTrue. because {x: 9} is affected by
|
||||
// {$set: {x: 7}} but not in a way that is relevant here, because either
|
||||
// x was already 9 (and this was handled by the previous clause), or x
|
||||
// was not 9 and this isn't going to affect the selector
|
||||
needToFetch.set(id, op.ts.toString());
|
||||
if (phase === PHASE.STEADY)
|
||||
fetchModifiedDocuments();
|
||||
|
||||
Reference in New Issue
Block a user