diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2021-02-12 02:42:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-16 04:29:08 +0000 |
commit | 69ace62fbb75081407de10e81c838228868579a2 (patch) | |
tree | f15fbea145f6db2df15e041a94c47e9a1ec60159 | |
parent | 394572f340bd06f5306a2e961cd9d4e0d3e96bb1 (diff) | |
download | mongo-69ace62fbb75081407de10e81c838228868579a2.tar.gz |
SERVER-53561 Disallow donorStartMigration command while upgrading or downgrading
-rw-r--r-- | src/mongo/db/commands/tenant_migration_donor_cmds.cpp | 6 |
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(), |