mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
fix tracing errors
This commit is contained in:
@@ -420,14 +420,14 @@ impl LockOrderEnforcer {
|
|||||||
match self.locks_held.remove_with_key(&req.handle_id) {
|
match self.locks_held.remove_with_key(&req.handle_id) {
|
||||||
None => {
|
None => {
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::warn!("Invalid removal from session manager: {}", req);
|
tracing::warn!("Invalid removal from session manager: {:?}", req);
|
||||||
}
|
}
|
||||||
Some((hdl, mut locks)) => {
|
Some((hdl, mut locks)) => {
|
||||||
let k = (req.ptr.clone(), req.ty);
|
let k = (req.ptr.clone(), req.ty);
|
||||||
match locks.remove_with_key(&k) {
|
match locks.remove_with_key(&k) {
|
||||||
None => {
|
None => {
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
tracing::warn!("Invalid removal from session manager: {}", req);
|
tracing::warn!("Invalid removal from session manager: {:?}", req);
|
||||||
}
|
}
|
||||||
Some((k, n)) => {
|
Some((k, n)) => {
|
||||||
if n - 1 > 0 {
|
if n - 1 > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user