FoundationDB/sql-layer — pull request #1441 by tjoneslo (2014-09-04 01:13:26+00:00)
Title: Remove the cursor management change for Intersect_ordered and

Map_NestedLoops as the source of the infinite loop.

The more aggressive version of the closing and re-opening of the input cursor in Map_NestedLoops caused the restart the processing in the IndexScan_Default/LookaheadLeafCursor resulting in the infinite loop.

The reason for putting this code in in the first place, an assert in the PersistitIndexCursor and/or wrong data failure is not fixed by these changes and will be fixed in a separate pull request.