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.
Get operationTime for command error response using _computeOperationTime
- Assignee:
-
Misha Tyulenev (Inactive)
- Reporter:
-
Jack Mulrow
- Votes:
-
0 Vote for this issue - Watchers:
-
4 Start watching this issue
- Created:
- Updated:
- Resolved: