diff options
author | Christopher Caplinger <christopher.caplinger@mongodb.com> | 2022-08-04 17:08:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-04 18:36:19 +0000 |
commit | aef31ad1a0d47dcd3851161a269d5cc76f83f819 (patch) | |
tree | f1373aeb057ea9f4bad30de051ab351691888204 /src/mongo/db/repl/tenant_migration_access_blocker.h | |
parent | 2bddb8f08fbeb742f30e0489115f0c5eb5a4b97a (diff) | |
download | mongo-aef31ad1a0d47dcd3851161a269d5cc76f83f819.tar.gz |
SERVER-64616: Install recipient access blocker when applying "create" entry
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_access_blocker.h')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_access_blocker.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mongo/db/repl/tenant_migration_access_blocker.h b/src/mongo/db/repl/tenant_migration_access_blocker.h index 509799530dd..0ff8928d5c7 100644 --- a/src/mongo/db/repl/tenant_migration_access_blocker.h +++ b/src/mongo/db/repl/tenant_migration_access_blocker.h @@ -50,8 +50,8 @@ public: */ enum class BlockerType { kDonor, kRecipient }; - TenantMigrationAccessBlocker(BlockerType type, MigrationProtocolEnum protocol) - : _type(type), _protocol(protocol) {} + TenantMigrationAccessBlocker(BlockerType type, const UUID& migrationId) + : _type(type), _migrationId(migrationId) {} virtual ~TenantMigrationAccessBlocker() = default; // @@ -90,9 +90,11 @@ public: virtual void appendInfoForServerStatus(BSONObjBuilder* builder) const = 0; /** - * Returns structured info with tenant id and connection string. + * Returns structured info. */ - virtual BSONObj getDebugInfo() const = 0; + BSONObj getDebugInfo() const { + return BSON("migrationId" << _migrationId.toString()); + } /** * Updates the runtime statistics for the number of tenant migration errors that have been @@ -108,15 +110,15 @@ public: } /** - * Returns the protocol of the access blocker. + * Returns the migration id of access blocker. */ - MigrationProtocolEnum getProtocol() { - return _protocol; + const UUID& getMigrationId() const { + return _migrationId; } private: const BlockerType _type; - const MigrationProtocolEnum _protocol; + const UUID _migrationId; }; } // namespace mongo |