summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/update_driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/update/update_driver.cpp')
-rw-r--r--src/mongo/db/update/update_driver.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/db/update/update_driver.cpp b/src/mongo/db/update/update_driver.cpp
index 0af1f5739e0..1826267443d 100644
--- a/src/mongo/db/update/update_driver.cpp
+++ b/src/mongo/db/update/update_driver.cpp
@@ -265,18 +265,7 @@ Status UpdateDriver::update(OperationContext* opCtx,
invariant(!modifiedPaths || modifiedPaths->empty());
if (_logOp && logOpRec) {
- const auto& fcvState = serverGlobalParams.featureCompatibility;
-
- // Updates may be run as part of the startup sequence, before the global FCV state has been
- // initialized. We conservatively do not permit the use of $v:2 oplog entries in these
- // situations.
-
- // TODO SERVER-51075: Remove FCV check for $v:2 delta oplog entries.
- const bool fcvAllowsV2Entries = fcvState.isVersionInitialized() &&
- fcvState.isGreaterThanOrEqualTo(
- ServerGlobalParams::FeatureCompatibility::Version::kVersion47);
-
- applyParams.logMode = fcvAllowsV2Entries && internalQueryEnableLoggingV2OplogEntries.load()
+ applyParams.logMode = internalQueryEnableLoggingV2OplogEntries.load()
? ApplyParams::LogMode::kGenerateOplogEntry
: ApplyParams::LogMode::kGenerateOnlyV1OplogEntry;