summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/tenant_migration_access_blocker_util.h
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-02-09 21:14:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-10 23:05:01 +0000
commit913c4be3ed219d83f19e0311c312fda5b3ca186e (patch)
treeb4a92f5bfa8c1ded407c69d45886703817bb74a4 /src/mongo/db/repl/tenant_migration_access_blocker_util.h
parent36c670a00152ed2af43f1cf1e7ac9bebb6d0e2f0 (diff)
downloadmongo-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.h2
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