summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
diff options
context:
space:
mode:
authormathisbessamdb <mathis.bessa@mongodb.com>2021-10-29 16:54:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-29 17:17:21 +0000
commitfde6bbbd32c8385a954ecb5e27b40aba12541ba6 (patch)
tree39291f4ee12d5275fdec9411392dd5f29483af69 /src/mongo/db/commands/tenant_migration_donor_cmds.cpp
parent8e4194f6b6704b088eebe5f380026c9ade9ddbcb (diff)
downloadmongo-fde6bbbd32c8385a954ecb5e27b40aba12541ba6.tar.gz
SERVER-60870 adding automation test case for read/write access after
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();