Skip to content

Commit 60f1736

Browse files
committed
remove debug counter
1 parent 7bd8527 commit 60f1736

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libsql-wal/src/transaction.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,8 @@ pub struct Savepoint {
132132
pub index: BTreeMap<u32, u32>,
133133
}
134134

135-
pub static SAVEPOINT_COUNTER: AtomicU64 = AtomicU64::new(0);
136-
137135
impl Savepoint {
138136
pub fn new(next_offset: u32, next_frame_no: u64, current_checksum: u32) -> Self {
139-
SAVEPOINT_COUNTER.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
140137
Self {
141138
next_offset,
142139
next_frame_no,
@@ -146,12 +143,6 @@ impl Savepoint {
146143
}
147144
}
148145

149-
impl Drop for Savepoint {
150-
fn drop(&mut self) {
151-
SAVEPOINT_COUNTER.fetch_sub(1, std::sync::atomic::Ordering::SeqCst);
152-
}
153-
}
154-
155146
/// The savepoints must be passed from most recent to oldest
156147
pub(crate) fn merge_savepoints<'a>(
157148
savepoints: impl Iterator<Item = &'a BTreeMap<u32, u32>>,

0 commit comments

Comments
 (0)