[SERVER-15994] listIndexes and listCollections can be run on secondaries without slaveOk bit Created: 06/Nov/14 Updated: 17/May/19 Resolved: 18/Nov/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.7.8 |
| Fix Version/s: | 2.6.6, 2.8.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Matt Dannenberg |
| Resolution: | Done | Votes: | 0 |
| Labels: | 28qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||
| Description |
|
Should able to correct this by having CmdListIndexes::slaveOk return false. Note: CmsListIndexes::slaveOverrideOk is already returning the correct value. |
| Comments |
| Comment by Githook User [ 24/Nov/14 ] |
|
Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}Message: |
| Comment by Githook User [ 18/Nov/14 ] |
|
Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}Message: |
| Comment by Randolph Tan [ 10/Nov/14 ] |
|
Confirmed that listCollections has the same problem. |
| Comment by Eric Milkie [ 07/Nov/14 ] |
|
We should consider changing listCollections as well, and perhaps listDatabases as well. |