diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-08 10:04:08 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-11 14:21:41 -0500 |
commit | cbb4e60d3e2756f5861372121228a6fe82a3cedb (patch) | |
tree | ccb705c98a6f27e0b8f56f207ba480d1f0a9062b /src/mongo/db/s/migration_chunk_cloner_source_legacy.h | |
parent | 214c05c296661f39881e18dd57b92f19af1b2c01 (diff) | |
download | mongo-cbb4e60d3e2756f5861372121228a6fe82a3cedb.tar.gz |
SERVER-22657 Make MigrationChunkClonerSourceLegacy not do host resolution
No functional changes, just a cleanup to move the resolution of the
recipient shard's primary out of MigrationChunkClonerSourceLegacy in order
to make it simpler for unit-testing.
Diffstat (limited to 'src/mongo/db/s/migration_chunk_cloner_source_legacy.h')
-rw-r--r-- | src/mongo/db/s/migration_chunk_cloner_source_legacy.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy.h b/src/mongo/db/s/migration_chunk_cloner_source_legacy.h index 8858b3839cb..df14e57b154 100644 --- a/src/mongo/db/s/migration_chunk_cloner_source_legacy.h +++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy.h @@ -55,7 +55,10 @@ class MigrationChunkClonerSourceLegacy final : public MigrationChunkClonerSource MONGO_DISALLOW_COPYING(MigrationChunkClonerSourceLegacy); public: - MigrationChunkClonerSourceLegacy(MoveChunkRequest request, const BSONObj& shardKeyPattern); + MigrationChunkClonerSourceLegacy(MoveChunkRequest request, + const BSONObj& shardKeyPattern, + ConnectionString donorConnStr, + HostAndPort recipientHost); ~MigrationChunkClonerSourceLegacy(); Status startClone(OperationContext* txn) override; @@ -168,10 +171,10 @@ private: const MigrationSessionId _sessionId; // The resolved connection string of the donor shard - ConnectionString _donorCS; + const ConnectionString _donorConnStr; // The resolved primary of the recipient shard - HostAndPort _recipientHost; + const HostAndPort _recipientHost; // Registered deletion notifications plan executor, which will listen for document deletions // during the cloning stage |