-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 2.0.27
-
Component/s: None
-
Empty show more show less
Hi,
On a node project that use a replicaset, when I call findAndModify or dropIndex methods, there is often an error "not master" because requests are executed on a secondary.
I think these kind of method should always use primary (et least for writing part).
To bypass that, I need to add readPreference primary on all call to these functions, and it's not very cool
Thanks.