Skip to content

Commit

Permalink
perf(mdbx): do not always collect the backtrace of a locked transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jan 31, 2025
1 parent bd5dde5 commit 47f1b31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/storage/libmdbx-rs/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 47f1b31

Please sign in to comment.