mongodb/mongo-ruby-driver — pull request #506 by estolfo (2014-10-08 13:47:14+00:00)
Title: RUBY-813 Pin pool after parallel collection scan and aggregation with cu...

This fixes RUBY-813:
When iterating over a cursor returned from a command (parallelCollectionScan or aggregate), the getmore will fail because a pool has not been pinned.

This pull request checks the initial result from the server and if there is cursor info returned, the pool will be pinned regardless of whether a command was executed.