diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2022-08-31 22:42:20 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-31 23:31:27 +0000 |
commit | 3c9d1ed677835a92ac66ff96171cb2d5436dfd33 (patch) | |
tree | 3e9a33a3160351eafda62be527978560ebe50199 | |
parent | 1a5cebdcd68691ce7e3f4e7b1caf367033000e7a (diff) | |
download | mongo-3c9d1ed677835a92ac66ff96171cb2d5436dfd33.tar.gz |
SERVER-69159 Enable positioned cursors across find cmd for snapshot read concern
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 86bff60820b..dc704c411b6 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -567,9 +567,7 @@ public: // If the executor supports it, find operations will maintain the storage engine state // across commands. - if (gMaintainValidCursorsAcrossReadCommands && !opCtx->inMultiDocumentTransaction() && - repl::ReadConcernArgs::get(opCtx).getLevel() != - repl::ReadConcernLevel::kSnapshotReadConcern) { + if (gMaintainValidCursorsAcrossReadCommands && !opCtx->inMultiDocumentTransaction()) { exec->enableSaveRecoveryUnitAcrossCommandsIfSupported(); } |