summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2020-03-23 15:54:10 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-26 19:07:14 +0000
commitd0b52ddd66d7e9d79ff5d46a35d760a328464da7 (patch)
tree6376b547bd71cc98072258cdc6e9036f69b86996 /src/mongo/db/ops
parentbcbae014e202d0ed38da00406df5b2a00d70eb03 (diff)
downloadmongo-d0b52ddd66d7e9d79ff5d46a35d760a328464da7.tar.gz
SERVER-41873 Remove most remaining uses of 'oplogReplay' flag
Starting in 4.4, this flag is accepted by the server but does not affect how the query is executed. However, there were several places in the code base where 'oplogReplay' needed to be handled due to the possibility of a mixed version 4.2/4.4 cluster. This logic can now be removed, since a 4.6 node need not be compatible with 4.2. In order to avoid breaking old drivers, the 'oplogReplay' find command option and OP_QUERY flag bit will continue to be accepted but ignored.
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/write_ops_retryability.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/ops/write_ops_retryability.cpp b/src/mongo/db/ops/write_ops_retryability.cpp
index 57e872fdb39..d39dc6f78c5 100644
--- a/src/mongo/db/ops/write_ops_retryability.cpp
+++ b/src/mongo/db/ops/write_ops_retryability.cpp
@@ -108,10 +108,8 @@ BSONObj extractPreOrPostImage(OperationContext* opCtx, const repl::OplogEntry& o
: oplog.getPostImageOpTime().value();
DBDirectClient client(opCtx);
- auto oplogDoc = client.findOne(NamespaceString::kRsOplogNamespace.ns(),
- opTime.asQuery(),
- nullptr,
- QueryOption_OplogReplay);
+ auto oplogDoc =
+ client.findOne(NamespaceString::kRsOplogNamespace.ns(), opTime.asQuery(), nullptr);
uassert(40613,
str::stream() << "oplog no longer contains the complete write history of this "