Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions sqlx-core/src/transaction.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::borrow::Cow;
use std::fmt::{self, Debug, Formatter};
use std::ops::{Deref, DerefMut};
use std::backtrace::Backtrace;

use futures_core::future::BoxFuture;

Expand Down Expand Up @@ -269,11 +268,7 @@ where
// what this does depends on the database but generally this means we queue a rollback
// operation that will happen on the next asynchronous invocation of the underlying
// connection (including if the connection is returned to a pool)
let bt = Backtrace::capture();
tracing::warn!(
backtrace = ?bt,
"Detected incorrect transaction rollback"
);
tracing::warn!("Detected incorrect transaction rollback");
DB::TransactionManager::start_rollback(&mut self.connection);
}
}
Expand Down
Loading