[SERVER-15502] Implement Strategy::commandOpWrite Created: 02/Oct/14  Updated: 11/Jul/16  Resolved: 08/Oct/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.7.8

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Greg Studer
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-14102 Implement explain command for mongos Closed
Participants:

 Description   

As part of the implementation of the explain command on mongos (SERVER-14102), a stub Strategy::commandOpWrite method was put in place for targeting write commands. Currently this method simply delegates to the existing Strategy::commandOp(), using an empty BSONObj as the targeting query (refer to the code here).

The implementation needs to be filled in to correctly follow targeting rules for writes. Currently the stub Strategy::commandOpWrite() is only used for explains of write commands, but this means that explained write commands will be targeted incorrectly.



 Comments   
Comment by Githook User [ 08/Oct/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-15502 simple targeting of explain for writes in mongos

Further command refactoring postponed
Branch: master
https://github.com/mongodb/mongo/commit/f3bc8b409dd6253a2aac2a768a86606ec7b8019d

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