mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move Transaction lock acquired mdbx log to trace (#14218)
This commit is contained in:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user