diff options
| author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-09-13 09:23:07 +0200 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-15 08:12:08 +0000 |
| commit | fa920335ed6a41efa417e5c41940cd28a4a36829 (patch) | |
| tree | eb7454e4661ce8e3d38c08a12b2609eea926edbb /src/mongo/db/repl/oplog_applier_impl.cpp | |
| parent | d8901a2835d3f464d394631d85dc7aa9493fc095 (diff) | |
| download | mongo-fa920335ed6a41efa417e5c41940cd28a4a36829.tar.gz | |
SERVER-69523 Only allow METADATA and MUTEX lock acqisitions with OpContext
This makes mutex acquisitions both interruptible and allows the lock
manager to be able to inspect the lock acqusitions so far.
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl.cpp')
| -rw-r--r-- | src/mongo/db/repl/oplog_applier_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl.cpp b/src/mongo/db/repl/oplog_applier_impl.cpp index 353d1965f8f..032e9109f14 100644 --- a/src/mongo/db/repl/oplog_applier_impl.cpp +++ b/src/mongo/db/repl/oplog_applier_impl.cpp @@ -502,7 +502,7 @@ StatusWith<OpTime> OplogApplierImpl::_applyOplogBatch(OperationContext* opCtx, // Stop all readers until we're done. This also prevents doc-locking engines from deleting old // entries from the oplog until we finish writing. - Lock::ParallelBatchWriterMode pbwm(opCtx->lockState()); + Lock::ParallelBatchWriterMode pbwm(opCtx); invariant(_replCoord); if (_replCoord->getApplierState() == ReplicationCoordinator::ApplierState::Stopped) { |
