[SERVER-18194] Commands shouldn't set slaveOk flag for readPreference=PRIMARY Created: 23/Apr/15  Updated: 07/Dec/16  Resolved: 15/Oct/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.2.0-rc1

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-20743 Sharding code needs to set $secondary... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding B (10/30/15)
Participants:

 Description   

Currently it sets it any time readPreference is supplied: https://github.com/mongodb/mongo/blob/r3.1.1/src/mongo/db/dbcommands.cpp#L1609-L1613



 Comments   
Comment by Githook User [ 15/Oct/15 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-18194 command should not set slaveOk if ReadPreference == PrimaryOnly
Branch: master
https://github.com/mongodb/mongo/commit/6adf88a277d5e761aaed28a3f522768b3f4f6143

Generated at Thu Feb 08 03:46:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.