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

Implement Strategy::commandOpWrite

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.8
    • None
    • Sharding
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: