diff options
author | Jason Chan <jason.chan@mongodb.com> | 2020-11-17 01:59:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-18 22:42:42 +0000 |
commit | bb5727d978d956a95bb58592e7704bd363694348 (patch) | |
tree | f1a29f9c55379f65cdc9bf20eab034ee18d950d9 /src/mongo/db/commands/tenant_migration_donor_cmds.cpp | |
parent | 28ce56064f45644aec1b44376d60509e62a4504b (diff) | |
download | mongo-bb5727d978d956a95bb58592e7704bd363694348.tar.gz |
SERVER-51286 Switch to use new feature flag syntax for tenant migrations
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.cpp')
-rw-r--r-- | src/mongo/db/commands/tenant_migration_donor_cmds.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp index 467e4c4c9c9..ffdfb4c755f 100644 --- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp +++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp @@ -51,7 +51,8 @@ public: Response typedRun(OperationContext* opCtx) { uassert(ErrorCodes::CommandNotSupported, "donorStartMigration command not enabled", - repl::enableTenantMigrations); + repl::feature_flags::gTenantMigrations.isEnabled( + serverGlobalParams.featureCompatibility)); const RequestType& requestBody = request(); @@ -118,7 +119,8 @@ public: void typedRun(OperationContext* opCtx) { uassert(ErrorCodes::CommandNotSupported, "donorForgetMigration command not enabled", - repl::enableTenantMigrations); + repl::feature_flags::gTenantMigrations.isEnabled( + serverGlobalParams.featureCompatibility)); const RequestType& requestBody = request(); |