summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.idl
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2021-10-25 15:18:29 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-25 19:57:20 +0000
commit99f4696e26b26a33902067d2f3b71b053413b4ab (patch)
tree189b99e9f8a3fabde271c691d7217c7fd7d86624 /src/mongo/db/commands/tenant_migration_donor_cmds.idl
parentd95d9dd1e6a34f7af53feee1e55fbc74ae6e32b3 (diff)
downloadmongo-99f4696e26b26a33902067d2f3b71b053413b4ab.tar.gz
Revert "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' protcol."
This reverts commit 56a5ddbf5a2ba92169e81ec24f9387c5fe1c0931.
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.idl')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.idl14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.idl b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
index 3c08f095093..750504590f9 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.idl
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.idl
@@ -35,10 +35,17 @@ 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"
@@ -71,7 +78,6 @@ 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:
@@ -92,9 +98,9 @@ commands:
# TODO (SERVER-54085): Remove server parameter tenantMigrationDisableX509Auth.
optional: true
protocol:
- description: "Which migration protocol to use."
+ description: "Which migration protocol to use, default 'multitenant migrations'."
type: MigrationProtocol
- default: kMultitenantMigrations
+ optional: true
donorForgetMigration:
description: "Parser for the 'donorForgetMigration' command."