chore: move Transaction lock acquired mdbx log to trace (#14218)

This commit is contained in:
Dan Cline
2025-02-05 14:07:20 -05:00
committed by GitHub
parent af00d882d2
commit 8f59efb96a

View File

@ -579,11 +579,13 @@ impl TransactionPtr {
self.timed_out.store(true, std::sync::atomic::Ordering::SeqCst);
}
/// Acquires the inner transaction lock to guarantee exclusive access to the transaction
/// pointer.
fn lock(&self) -> MutexGuard<'_, ()> {
if let Some(lock) = self.lock.try_lock() {
lock
} else {
tracing::debug!(
tracing::trace!(
target: "libmdbx",
txn = %self.txn as usize,
backtrace = %std::backtrace::Backtrace::capture(),