diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_find_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_find_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_find_cmd.cpp b/src/mongo/s/commands/cluster_find_cmd.cpp index 7ebab369391..51d6272400b 100644 --- a/src/mongo/s/commands/cluster_find_cmd.cpp +++ b/src/mongo/s/commands/cluster_find_cmd.cpp @@ -230,7 +230,10 @@ public: // Build the response document. CursorResponseBuilder::Options options; options.isInitialResponse = true; - options.atClusterTime = repl::ReadConcernArgs::get(opCtx).getArgsAtClusterTime(); + if (!opCtx->inMultiDocumentTransaction()) { + options.atClusterTime = + repl::ReadConcernArgs::get(opCtx).getArgsAtClusterTime(); + } CursorResponseBuilder firstBatch(result, options); for (const auto& obj : batch) { firstBatch.append(obj); |