diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2020-09-10 13:59:12 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-19 22:11:30 +0000 |
commit | 73010da1fe57e548cf7a651361dbe6eae535b87c (patch) | |
tree | 85c967bd487e007a90003df0840f46fbacbf1d87 /src/mongo/db/commands/tenant_migration_recipient_cmds.idl | |
parent | 552c3d62daa278ef165c005cc972353860382a44 (diff) | |
download | mongo-73010da1fe57e548cf7a651361dbe6eae535b87c.tar.gz |
SERVER-48796 Implement recipientSyncData command in MigrationServiceInstance.
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_recipient_cmds.idl')
-rw-r--r-- | src/mongo/db/commands/tenant_migration_recipient_cmds.idl | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/mongo/db/commands/tenant_migration_recipient_cmds.idl b/src/mongo/db/commands/tenant_migration_recipient_cmds.idl index 01a772c4c38..c43fdef58e1 100644 --- a/src/mongo/db/commands/tenant_migration_recipient_cmds.idl +++ b/src/mongo/db/commands/tenant_migration_recipient_cmds.idl @@ -31,6 +31,7 @@ global: cpp_includes: - "mongo/client/read_preference.h" - "mongo/db/repl/tenant_migration_util.h" + - "mongo/db/repl/optime.h" imports: - "mongo/client/read_preference_setting.idl" @@ -38,6 +39,15 @@ imports: - "mongo/s/sharding_types.idl" - "mongo/db/repl/replication_types.idl" +structs: + recipientSyncDataResponse: + description: "Response for the 'recipientSyncData' command" + strict: false + fields: + majorityAppliedDonorOpTime: + type: optime + description: "Majority applied donor optime by the recipient" + commands: recipientSyncData: description: "Parser for the 'recipientSyncData' command." @@ -48,20 +58,31 @@ commands: description: "Unique identifier for the tenant migration." type: uuid donorConnectionString: - description: "The URI string that the donor will utilize to create a connection with the recipient." + description: >- + The URI string that the recipient will utilize to create a connection with the + donor. type: string + validator: + callback: "validateConnectionString" tenantId: - description: "The prefix from which the migrating database will be matched. The prefixes 'admin', 'local', 'config', the empty string, are not allowed." + description: >- + The prefix from which the migrating database will be matched. The prefixes 'admin', + 'local', 'config', the empty string, are not allowed. type: string validator: callback: "validateDatabasePrefix" readPreference: - description: "The read preference settings that the donor will pass on to the recipient." + description: >- + The read preference settings that the donor will pass on to the recipient. type: readPreference - returnAfterReachingOpTime: - description: "If provided, the recipient should return after syncing up to this OpTime. Otherwise, the recipient will return once its copy of the data is consistent." + returnAfterReachingTimestamp: + description: >- + If provided, the recipient should return after syncing up to this timestamp. + Otherwise, the recipient will return once its copy of the data is consistent. type: timestamp optional: true + validator: + callback: "validateTimestampNotNull" recipientForgetMigration: description: "Parser for the 'recipientForgetMigration' command." |