voyage icon indicating copy to clipboard operation
voyage copied to clipboard

mongo: slaveOk flag should be subject to the readPreference handling

Open zecke opened this issue 5 years ago • 2 comments

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?

zecke avatar Feb 01 '20 16:02 zecke