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

Get operationTime for command error response using _computeOperationTime

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.9
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2017-06-19

    Description

      Right now in the catch block of mongo::execCommandDatabase in src/mongo/db/commands/dbcommands.cpp the operationTime is set to the current clusterTime. This is correct, but can result in extra waiting on subsequent afterClusterTime reads. Once the exception handling path is moved into Command::run, the operationTime should be found using the _computeOperationTime function. This is because _computeOperationTime requires the startOperationTime and the readConcern level.

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: