diff options
author | Lynne Wang <lynne.wang@mongodb.com> | 2022-07-21 16:19:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-21 17:05:04 +0000 |
commit | 75a7e2a20b345bcca9601756f64a84ffbcdaf4b1 (patch) | |
tree | feec5675416264d0bcef8a35d52fad91c7071df0 /src/mongo/db/commands/cqf/cqf_command_utils.cpp | |
parent | a9670e15843c06b3bacdc661bd3666d402df09df (diff) | |
download | mongo-75a7e2a20b345bcca9601756f64a84ffbcdaf4b1.tar.gz |
SERVER-67655: Implement analyze command for mongos
Diffstat (limited to 'src/mongo/db/commands/cqf/cqf_command_utils.cpp')
-rw-r--r-- | src/mongo/db/commands/cqf/cqf_command_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/cqf/cqf_command_utils.cpp b/src/mongo/db/commands/cqf/cqf_command_utils.cpp index 0e56e83ed90..6670d544ea2 100644 --- a/src/mongo/db/commands/cqf/cqf_command_utils.cpp +++ b/src/mongo/db/commands/cqf/cqf_command_utils.cpp @@ -634,7 +634,8 @@ bool isEligibleCommon(const RequestType& request, boost::optional<bool> shouldForceBonsai() { // Without the feature flag set, nothing else matters. - if (!feature_flags::gFeatureFlagCommonQueryFramework.isEnabled( + if (!serverGlobalParams.featureCompatibility.isVersionInitialized() || + !feature_flags::gFeatureFlagCommonQueryFramework.isEnabled( serverGlobalParams.featureCompatibility)) { return false; } |