diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-04-25 02:12:37 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-05 17:47:50 +0000 |
commit | b37de758aa8a5fcc74d8af8b7556e3a18d76e90c (patch) | |
tree | d7e8aa9853593ccaa908d16870a3c65254e253a7 /src/mongo/db/repl/tenant_migration_access_blocker_registry.h | |
parent | ebffbebedc594fae13719a784f4b5ca409da0b0b (diff) | |
download | mongo-b37de758aa8a5fcc74d8af8b7556e3a18d76e90c.tar.gz |
SERVER-54302 Write tenant migration test when the state doc collection is dropped
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_access_blocker_registry.h')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_access_blocker_registry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/tenant_migration_access_blocker_registry.h b/src/mongo/db/repl/tenant_migration_access_blocker_registry.h index 51f06185868..2d6c588a883 100644 --- a/src/mongo/db/repl/tenant_migration_access_blocker_registry.h +++ b/src/mongo/db/repl/tenant_migration_access_blocker_registry.h @@ -95,6 +95,12 @@ public: * Invariants that an entry for tenantId exists, and then removes the entry for (tenantId, mtab) */ void remove(StringData tenantId, TenantMigrationAccessBlocker::BlockerType type); + void _remove(WithLock, StringData tenantId, TenantMigrationAccessBlocker::BlockerType type); + + /** + * Removes all mtabs of the given type. + */ + void removeAll(TenantMigrationAccessBlocker::BlockerType type); /** * Iterates through each of the TenantMigrationAccessBlockers and |