diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-02-09 21:14:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-10 23:05:01 +0000 |
commit | 913c4be3ed219d83f19e0311c312fda5b3ca186e (patch) | |
tree | b4a92f5bfa8c1ded407c69d45886703817bb74a4 /src/mongo/db/repl/tenant_migration_access_blocker_util.h | |
parent | 36c670a00152ed2af43f1cf1e7ac9bebb6d0e2f0 (diff) | |
download | mongo-913c4be3ed219d83f19e0311c312fda5b3ca186e.tar.gz |
SERVER-54425 Make TenantMigrationDonorAccessBlocker keep track of number of blocked reads and writes and tenant migration errors thrown
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_access_blocker_util.h')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_access_blocker_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/tenant_migration_access_blocker_util.h b/src/mongo/db/repl/tenant_migration_access_blocker_util.h index cf338366e5a..a0cf4a57c8d 100644 --- a/src/mongo/db/repl/tenant_migration_access_blocker_util.h +++ b/src/mongo/db/repl/tenant_migration_access_blocker_util.h @@ -74,7 +74,7 @@ void checkIfLinearizableReadWasAllowedOrThrow(OperationContext* opCtx, StringDat * Throws TenantMigrationConflict if the database is being migrated and the migration is in the * blocking state. Throws TenantMigrationCommitted if it is in committed. */ -void onWriteToDatabase(OperationContext* opCtx, StringData dbName); +void checkIfCanWriteOrThrow(OperationContext* opCtx, StringData dbName); /** * Returns TenantMigrationConflict if the database is being migrated (even if migration is not yet |