summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp')
-rw-r--r--src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp b/src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp
index 7d2f659703e..959f255500a 100644
--- a/src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp
+++ b/src/mongo/db/s/config/configsvr_ensure_chunk_version_is_greater_than_command.cpp
@@ -51,7 +51,7 @@ public:
void typedRun(OperationContext* opCtx) {
uassert(ErrorCodes::IllegalOperation,
"_configsvrEnsureChunkVersionIsGreaterThan can only be run on config servers",
- serverGlobalParams.clusterRole == ClusterRole::ConfigServer);
+ serverGlobalParams.clusterRole.has(ClusterRole::ConfigServer));
CommandHelpers::uassertCommandRunWithMajority(Request::kCommandName,
opCtx->getWriteConcern());
ShardingCatalogManager::get(opCtx)->ensureChunkVersionIsGreaterThan(