perf(mdbx): do not always collect the backtrace of a locked transaction (#14123)

This commit is contained in:
Alexey Shekhirin
2025-01-31 15:11:37 +00:00
committed by GitHub
parent fe160e74df
commit 62edaf14d4

View File

@ -586,8 +586,9 @@ impl TransactionPtr {
tracing::debug!(
target: "libmdbx",
txn = %self.txn as usize,
backtrace = %std::backtrace::Backtrace::force_capture(),
"Transaction lock is already acquired, blocking..."
backtrace = %std::backtrace::Backtrace::capture(),
"Transaction lock is already acquired, blocking...
To display the full backtrace, run with `RUST_BACKTRACE=full` env variable."
);
self.lock.lock()
}