diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2018-12-14 22:24:49 -0500 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2018-12-17 13:04:53 -0500 |
commit | 105acca0d443f9a47c1a5bd608fd7133840a58dd (patch) | |
tree | 5a8d739386d7e4502ff4314c4bcae3cd32bbf408 /src/mongo/db/repl/rs_initialsync.cpp | |
parent | b552f4281de9d9127b97aed613fadd0a697ac244 (diff) | |
download | mongo-105acca0d443f9a47c1a5bd608fd7133840a58dd.tar.gz |
SERVER-38425 Use oplogReplay for oplog visibility queryr3.2.22-rc0r3.2.22
Diffstat (limited to 'src/mongo/db/repl/rs_initialsync.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_initialsync.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_initialsync.cpp b/src/mongo/db/repl/rs_initialsync.cpp index 3f8ff685de9..42a230e3d8a 100644 --- a/src/mongo/db/repl/rs_initialsync.cpp +++ b/src/mongo/db/repl/rs_initialsync.cpp @@ -368,7 +368,7 @@ Status _initialSync() { BSONObjBuilder queryBob; queryBob.append("ts", gte.done()); const BSONObj& query = queryBob.done(); - BSONObj lastOpConfirm = r.findOne(rsOplogName.c_str(), query); + BSONObj lastOpConfirm = r.findOne(rsOplogName.c_str(), query, QueryOption_OplogReplay); invariant(!lastOpConfirm.isEmpty()); OpTime lastOpConfirmTime = fassertStatusOK(40421, OpTime::parseFromOplogEntry(lastOpConfirm)); |