diff options
author | Randolph Tan <randolph@10gen.com> | 2018-02-12 10:43:55 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2018-02-14 10:04:57 -0500 |
commit | 0bf18b0a3a12e23308af9d26fb1e993a8ec81f36 (patch) | |
tree | b724183451bf2386bf2f50e9eb3090bb513b6c77 | |
parent | a39c11a7a14b29fc566178afcd8d67998a35fb93 (diff) | |
download | mongo-0bf18b0a3a12e23308af9d26fb1e993a8ec81f36.tar.gz |
SERVER-32806 retried FindAndModify not using oplogHack when querying for pre/post image oplog entry
(cherry picked from commit ee26a6df68dc93e3e66f99180e2d03af09fd9daa)
-rw-r--r-- | src/mongo/db/ops/write_ops_retryability.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/ops/write_ops_retryability.cpp b/src/mongo/db/ops/write_ops_retryability.cpp index 797db187565..c9525140324 100644 --- a/src/mongo/db/ops/write_ops_retryability.cpp +++ b/src/mongo/db/ops/write_ops_retryability.cpp @@ -121,7 +121,10 @@ BSONObj extractPreOrPostImage(OperationContext* opCtx, const repl::OplogEntry& o : oplog.getPostImageOpTime().value(); DBDirectClient client(opCtx); - auto oplogDoc = client.findOne(NamespaceString::kRsOplogNamespace.ns(), opTime.asQuery()); + auto oplogDoc = client.findOne(NamespaceString::kRsOplogNamespace.ns(), + opTime.asQuery(), + nullptr, + QueryOption_OplogReplay); uassert(40613, str::stream() << "oplog no longer contains the complete write history of this " |