diff options
author | Kshitij Gupta <kshitij.gupta@mongodb.com> | 2022-12-16 20:18:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-16 21:23:07 +0000 |
commit | a2c7f46e2cc57b25d0d334376b901ed9f3988071 (patch) | |
tree | 2e4bee0b8c2dd2695d27176d7d7bfb012196f8a4 /src/mongo/db/s/configure_query_analyzer_cmd.cpp | |
parent | d2f91feb2e43823c165b1e25a5bfa7d53a81e997 (diff) | |
download | mongo-a2c7f46e2cc57b25d0d334376b901ed9f3988071.tar.gz |
SERVER-71959: Modify usages of ClusterRole::
Diffstat (limited to 'src/mongo/db/s/configure_query_analyzer_cmd.cpp')
-rw-r--r-- | src/mongo/db/s/configure_query_analyzer_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/configure_query_analyzer_cmd.cpp b/src/mongo/db/s/configure_query_analyzer_cmd.cpp index 73f8441c1db..5bcd779f1c2 100644 --- a/src/mongo/db/s/configure_query_analyzer_cmd.cpp +++ b/src/mongo/db/s/configure_query_analyzer_cmd.cpp @@ -61,7 +61,7 @@ public: Response typedRun(OperationContext* opCtx) { uassert(ErrorCodes::IllegalOperation, "configQueryAnalyzer command is not supported on a shardsvr mongod", - serverGlobalParams.clusterRole != ClusterRole::ShardServer); + !serverGlobalParams.clusterRole.isExclusivelyShardRole()); const auto& nss = ns(); const auto mode = request().getMode(); |