mongodb/mongo — pull request #210 by onyxmaster (2012-04-12 08:00:55+00:00)
Title: Added slaveOk support to GridFS read methods

Recently, I added https://jira.mongodb.org/browse/SERVER-5568. As I really need this feature for the https://bitbucket.org/onyxmaster/mod_gridfs/ to have at least one medium-to-high-performance GridFS server that supports read scaling via slaveOk, I decided to implement it myself.
The changes are pretty limited, and are not going to break existing code (a recompile is needed though because several method prototypes are changed and the binary layout of mongo::GridFile is altered).