mongoid/moped — pull request #73 by m-pod (2012-09-12 11:10:54+00:00)
Title: Raise CursorNotFound exception in get_more if the cursor was killed

We had an issue, where a long-running Model.all.each did not yield all results, but skipped some of them silently. After some investigations, we found out that MongoDB had killed the cursor because of a timeout. This message didn't get through to the client.
This pull request changes Moped to check for the cursor_not_found flag and raises an exception if it happened.

Cheers from your friendly crealytics devs ;)

PS: There will be a subsequent pull request for Mongoid and Moped to allow specifying batch sizes for cursor-based iterations.