meteor/meteor — pull request #2678 by davidworkman9 (2014-09-24 21:45:20+00:00)
Title: Starting point for a potential fix for #2668

oplog tailor stops itself when more than 2000 records are ahead of the current document. When it turns itself back on it tells all active cursors to re-poll themselves. _doneQuerying throws "Phase unexpectedly STEADY" error when polling occurs, I can't seem to figure out how/why that's happening.

I'm not sure what kind of bugs this may introduce, there's a lot going on there that I didn't take the time to figure out 100%, but I've tested it locally throwing over 150k operations at it one at a time (for loop), and in a big batch (remove) and it's stood up 100%. There is an exception being thrown that I can't for the life of me figure out, somehow the phase gets set back to STEADY when calling _pollQuery. But it doesn't not appear to be affecting anything at all.