summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2021-02-12 02:42:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-16 04:29:08 +0000
commit69ace62fbb75081407de10e81c838228868579a2 (patch)
treef15fbea145f6db2df15e041a94c47e9a1ec60159
parent394572f340bd06f5306a2e961cd9d4e0d3e96bb1 (diff)
downloadmongo-69ace62fbb75081407de10e81c838228868579a2.tar.gz
SERVER-53561 Disallow donorStartMigration command while upgrading or downgrading
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
index 5e239bbe97d..19eb886ce20 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
@@ -62,6 +62,12 @@ public:
repl::feature_flags::gTenantMigrations.isEnabled(
serverGlobalParams.featureCompatibility));
+ // (Generic FCV reference): This FCV reference should exist across LTS binary versions.
+ uassert(
+ 5356100,
+ "donorStartMigration not available while upgrading or downgrading the donor FCV",
+ !serverGlobalParams.featureCompatibility.isUpgradingOrDowngrading());
+
const auto& cmd = request();
TenantMigrationDonorDocument stateDoc(cmd.getMigrationId(),