summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp b/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp
index 1058e6ebafd..4b6d49ebae1 100644
--- a/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp
+++ b/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp
@@ -66,6 +66,11 @@ public:
using InvocationBase::InvocationBase;
Reply typedRun(OperationContext* opCtx) {
+ uassert(ErrorCodes::UnknownFeatureCompatibilityVersion,
+ "FCV is not yet initialized, retry the command after FCV initialization has "
+ "completed",
+ serverGlobalParams.featureCompatibility.isVersionInitialized());
+
uassert(
ErrorCodes::IllegalOperation,
"featureFlagClusterWideConfig not enabled",