Details
-
Bug
-
Resolution: Fixed
-
Critical - P2
-
0.1.0
-
None
Description
The ListCollections database method passes through the database's read selector instead of constructing a new read selector for read preference primary. (Compare to how ListDatabases does it.)
Because the constructed command adds read preference primary (despite possibly selecting a non-primary server), ListCollections run on a database with secondary read preference will fail with an error: "(NotMasterNoSlaveOk) not master and slaveOk=false".
Attachments
Issue Links
- is depended on by
-
TOOLS-1833 Migrate tools (excluding mongoreplay) to new Go Driver
-
- Closed
-