diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-03-23 19:12:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-25 18:23:45 +0000 |
commit | 2ff9b318f8ededdea173e7133cd016bd9b9bf48f (patch) | |
tree | 8c10fcc7a9ab9008dd151e1144eeecd4fa60ab35 /src/mongo/db/repl/tenant_migration_recipient_service.h | |
parent | 520afcb8c5270cb50c93ccfdadb513bf4cd0f7e6 (diff) | |
download | mongo-2ff9b318f8ededdea173e7133cd016bd9b9bf48f.tar.gz |
SERVER-55408 Make TenantMigration{Donor|Recipient}Service's checkIfOptionsConflict check migration certificates
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_recipient_service.h')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_recipient_service.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service.h b/src/mongo/db/repl/tenant_migration_recipient_service.h index e68d0844f55..58e65811412 100644 --- a/src/mongo/db/repl/tenant_migration_recipient_service.h +++ b/src/mongo/db/repl/tenant_migration_recipient_service.h @@ -131,8 +131,8 @@ public: /** * To be called on the instance returned by PrimaryOnlyService::getOrCreate(). Returns an - * error if the options this Instance was created with are incompatible with a request for - * an instance with the options given in 'stateDoc'. + * error if the options this Instance was created with are incompatible with the options + * given in 'stateDoc'. */ Status checkIfOptionsConflict(const TenantMigrationRecipientDocument& stateDoc) const; @@ -501,11 +501,12 @@ public: // This data is provided in the initial state doc and never changes. We keep copies to // avoid having to obtain the mutex to access them. - const std::string _tenantId; // (R) - const UUID _migrationUuid; // (R) - const std::string _donorConnectionString; // (R) - const MongoURI _donorUri; // (R) - const ReadPreferenceSetting _readPreference; // (R) + const std::string _tenantId; // (R) + const UUID _migrationUuid; // (R) + const std::string _donorConnectionString; // (R) + const MongoURI _donorUri; // (R) + const ReadPreferenceSetting _readPreference; // (R) + const boost::optional<TenantMigrationPEMPayload> _recipientCertificateForDonor; // (R) // TODO (SERVER-54085): Remove server parameter tenantMigrationDisableX509Auth. // Transient SSL params created based on the state doc if the server parameter // 'tenantMigrationDisableX509Auth' is false. |