twitter/flockdb — pull request #78 by adamwynne (2012-02-20 14:13:25+00:00)
Title: Fixed bug in -- operator

consider a case where 1 follows (range 1 10000) and 2 follows (2 9999)
the difference should yield [1, 10000], but in the old code, it would just yield [10000], as the query would end prematurely in the (newPage.size == 0) condition.

In my test config, the max page size was 4000 (which would yield an identical page 2 for both queries, thereby terminating it early with the page.filter eliminating all the values in newPage).