summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.idl
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2021-11-09 13:21:10 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-09 20:55:12 +0000
commit7f89e2f0ed594e2c570c7d0ea31d4e887a608653 (patch)
treeb848de6f40921c9806b6293c61b747371b36c0ee /src/mongo/db/commands/tenant_migration_donor_cmds.idl
parent91ea2a5da01bd0806f2541d4157dfef54f6d7069 (diff)
downloadmongo-7f89e2f0ed594e2c570c7d0ea31d4e887a608653.tar.gz
SERVER-59495 Donor and recipient tenant migration state machines will persist the migration protocol info and tenantId info will be an empty string for 'Merge' protocol."
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.idl')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.idl12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.idl b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
index 750504590f9..3117ef7a9ba 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.idl
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
@@ -35,17 +35,10 @@ global:
imports:
- "mongo/client/read_preference_setting.idl"
- "mongo/db/repl/tenant_migration_state_machine.idl"
+ - "mongo/db/serverless/serverless_types.idl"
- "mongo/idl/basic_types.idl"
- "mongo/s/sharding_types.idl"
-enums:
- MigrationProtocol:
- description: "Determines which tenant migration protocol to use."
- type: string
- values:
- kMultitenantMigrations: "multitenant migrations"
- kShardMerge: "shard merge"
-
structs:
DonorStartMigrationResponse:
description: "Response of the donorStartMigration command"
@@ -78,6 +71,7 @@ commands:
tenantId:
description: "The prefix from which the migrating database will be matched. The prefixes 'admin', 'local', 'config', the empty string, are not allowed."
type: string
+ default: '""'
validator:
callback: "tenant_migration_util::validateDatabasePrefix"
readPreference:
@@ -101,6 +95,8 @@ commands:
description: "Which migration protocol to use, default 'multitenant migrations'."
type: MigrationProtocol
optional: true
+ validator:
+ callback: "tenant_migration_util::validateProtocolFCVCompatibility"
donorForgetMigration:
description: "Parser for the 'donorForgetMigration' command."