diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2021-11-02 20:07:09 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-02 20:53:19 +0000 |
commit | bbc96fbba2deaac539165bcd86bbdaf6037f41dd (patch) | |
tree | d45d57646ae12e4d347fc25b00e72c7b54eb7c71 /jstests/replsets/libs/tenant_migration_util.js | |
parent | d47a25210252140172b9f8aa99f78662d7c1fcaf (diff) | |
download | mongo-bbc96fbba2deaac539165bcd86bbdaf6037f41dd.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 'jstests/replsets/libs/tenant_migration_util.js')
-rw-r--r-- | jstests/replsets/libs/tenant_migration_util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/libs/tenant_migration_util.js b/jstests/replsets/libs/tenant_migration_util.js index 9d89ceee585..6a07a83065c 100644 --- a/jstests/replsets/libs/tenant_migration_util.js +++ b/jstests/replsets/libs/tenant_migration_util.js @@ -37,7 +37,7 @@ var TenantMigrationUtil = (function() { */ function donorStartMigrationWithProtocol(cmd, db) { // If we don't pass "protocol", the server uses "multitenant migrations" by default. - if (isShardMergeEnabled(db)) { + if (cmd['protocol'] === undefined && isShardMergeEnabled(db)) { return Object.assign(Object.assign({}, cmd), {protocol: "shard merge"}); } |