From 7f89e2f0ed594e2c570c7d0ea31d4e887a608653 Mon Sep 17 00:00:00 2001 From: Suganthi Mani Date: Tue, 9 Nov 2021 13:21:10 -0500 Subject: 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." --- src/mongo/db/commands/tenant_migration_donor_cmds.idl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.idl') 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." -- cgit v1.2.1