summaryrefslogtreecommitdiff
path: root/src/mongo/db/db_raii.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2015-10-21 09:21:58 -0400
committerEric Milkie <milkie@10gen.com>2015-10-23 15:20:44 -0400
commit9997b730eaed62b0d5da9b624cf455555b685b9c (patch)
tree821d1aa8fb295c53fa726e94f625b40b9cab2598 /src/mongo/db/db_raii.cpp
parent5ccffd3e136b8423ad75568dea3c6b42bbe4475e (diff)
downloadmongo-9997b730eaed62b0d5da9b624cf455555b685b9c.tar.gz
SERVER-21028 Plug a race when waiting for new snapshots as part of read concern level majority.
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r--src/mongo/db/db_raii.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp
index 0d203651f10..ce0260e677d 100644
--- a/src/mongo/db/db_raii.cpp
+++ b/src/mongo/db/db_raii.cpp
@@ -130,7 +130,7 @@ void AutoGetCollectionForRead::_ensureMajorityCommittedSnapshotIsValid(const Nam
// Yield locks.
_autoColl = {};
- repl::ReplicationCoordinator::get(_txn)->waitForNewSnapshot(_txn);
+ repl::ReplicationCoordinator::get(_txn)->waitUntilSnapshotCommitted(_txn, *minSnapshot);
uassertStatusOK(_txn->recoveryUnit()->setReadFromMajorityCommittedSnapshot());