summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/metadata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/rpc/metadata.cpp')
-rw-r--r--src/mongo/rpc/metadata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/rpc/metadata.cpp b/src/mongo/rpc/metadata.cpp
index c4488220493..b59ef935ea9 100644
--- a/src/mongo/rpc/metadata.cpp
+++ b/src/mongo/rpc/metadata.cpp
@@ -101,7 +101,8 @@ void readRequestMetadata(OperationContext* opCtx, const BSONObj& metadataObj) {
if (signedTime.getTime() != LogicalTime::kUninitialized) {
// Cluster times are only sent by sharding aware mongod servers, so this point is only
// reached in sharded clusters.
- if (serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
+ if (serverGlobalParams.featureCompatibility.getVersion() ==
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) {
auto logicalTimeValidator = LogicalTimeValidator::get(opCtx);
if (!LogicalTimeValidator::isAuthorizedToAdvanceClock(opCtx)) {
if (!logicalTimeValidator) {