diff options
Diffstat (limited to 'src/mongo/s/commands/strategy.cpp')
-rw-r--r-- | src/mongo/s/commands/strategy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/commands/strategy.cpp b/src/mongo/s/commands/strategy.cpp index 09defb7c760..d0fdf1e671c 100644 --- a/src/mongo/s/commands/strategy.cpp +++ b/src/mongo/s/commands/strategy.cpp @@ -158,6 +158,9 @@ void invokeInTransactionRouter(OperationContext* opCtx, CommandInvocation* invocation, TransactionRouter* txnRouter, rpc::ReplyBuilderInterface* result) { + // No-op if the transaction is not running with snapshot read concern. + txnRouter->setDefaultAtClusterTime(opCtx); + try { invocation->run(opCtx, result); } catch (const DBException& e) { |