Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15502

Implement Strategy::commandOpWrite

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None

      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.

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: