voyage
voyage copied to clipboard
mongo: slaveOk flag should be subject to the readPreference handling
I was browsing VOMongoReadOneOperation>>#basicSelectOne and noticed that it sets the flag slaveOk. For strong consistency when readPreference is set to primary I prefer to not accidentally read data from a stale secondary.
At least VOMongoReadOneOperation and VOMOngoSelectManyOperation need some review.
@tinchodias WDUT?