Skip to content

Commit 1c2acb5

Browse files
committed
debug
Signed-off-by: Ping Yu <yuping@pingcap.com>
1 parent 124972f commit 1c2acb5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/transaction/lock.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ pub async fn resolve_locks(
9797
commit_versions.insert(lock.lock_version, 0);
9898
Some(0)
9999
}
100-
TransactionStatusKind::Locked(..) => None,
100+
TransactionStatusKind::Locked(_ttl, lock) => {
101+
live_locks.push(lock.clone());
102+
None
103+
}
101104
}
102105
}
103106
};
@@ -115,10 +118,9 @@ pub async fn resolve_locks(
115118
.entry(lock.lock_version)
116119
.or_default()
117120
.insert(cleaned_region);
118-
} else {
119-
live_locks.push(lock);
120121
}
121122
}
123+
info!("resolved locks, live_locks: {:?}", live_locks);
122124
Ok(live_locks)
123125
}
124126

0 commit comments

Comments
 (0)