summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.cpp')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
index 90915435ad1..63c62bcd47d 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
@@ -57,8 +57,9 @@ public:
Response typedRun(OperationContext* opCtx) {
uassert(ErrorCodes::IllegalOperation,
- "tenant migrations are not available in sharded clusters",
- serverGlobalParams.clusterRole == ClusterRole::None);
+ "tenant migrations are not available on config servers",
+ serverGlobalParams.clusterRole == ClusterRole::None ||
+ serverGlobalParams.clusterRole == ClusterRole::ShardServer);
// (Generic FCV reference): This FCV reference should exist across LTS binary versions.
uassert(
@@ -160,8 +161,9 @@ public:
void typedRun(OperationContext* opCtx) {
uassert(ErrorCodes::IllegalOperation,
- "tenant migrations are not available in sharded clusters",
- serverGlobalParams.clusterRole == ClusterRole::None);
+ "tenant migrations are not available on config servers",
+ serverGlobalParams.clusterRole == ClusterRole::None ||
+ serverGlobalParams.clusterRole == ClusterRole::ShardServer);
const auto& cmd = request();
@@ -228,8 +230,9 @@ public:
void typedRun(OperationContext* opCtx) {
uassert(ErrorCodes::IllegalOperation,
- "tenant migrations are not available in sharded clusters",
- serverGlobalParams.clusterRole == ClusterRole::None);
+ "tenant migrations are not available on config servers",
+ serverGlobalParams.clusterRole == ClusterRole::None ||
+ serverGlobalParams.clusterRole == ClusterRole::ShardServer);
const RequestType& cmd = request();