summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r--src/mongo/db/op_observer_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp
index d1267aa5768..72594583d3d 100644
--- a/src/mongo/db/op_observer_impl.cpp
+++ b/src/mongo/db/op_observer_impl.cpp
@@ -1421,8 +1421,8 @@ void OpObserverImpl::onUnpreparedTransactionCommit(OperationContext* opCtx,
// Throw TenantMigrationConflict error if the database for the transaction statements is being
// migrated. We only need check the namespace of the first statement since a transaction's
// statements must all be for the same tenant.
- tenant_migration_access_blocker::checkIfCanWriteOrThrow(opCtx,
- statements->begin()->getNss().db());
+ tenant_migration_access_blocker::checkIfCanWriteOrThrow(
+ opCtx, statements->begin()->getNss().db(), oplogSlots.back().getTimestamp());
if (MONGO_unlikely(hangAndFailUnpreparedCommitAfterReservingOplogSlot.shouldFail())) {
hangAndFailUnpreparedCommitAfterReservingOplogSlot.pauseWhileSet(opCtx);