We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bd8527 commit 60f1736Copy full SHA for 60f1736
1 file changed
libsql-wal/src/transaction.rs
@@ -132,11 +132,8 @@ pub struct Savepoint {
132
pub index: BTreeMap<u32, u32>,
133
}
134
135
-pub static SAVEPOINT_COUNTER: AtomicU64 = AtomicU64::new(0);
136
-
137
impl Savepoint {
138
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);
140
Self {
141
next_offset,
142
next_frame_no,
@@ -146,12 +143,6 @@ impl Savepoint {
146
143
147
144
148
145
149
-impl Drop for Savepoint {
150
- fn drop(&mut self) {
151
- SAVEPOINT_COUNTER.fetch_sub(1, std::sync::atomic::Ordering::SeqCst);
152
- }
153
-}
154
155
/// The savepoints must be passed from most recent to oldest
156
pub(crate) fn merge_savepoints<'a>(
157
savepoints: impl Iterator<Item = &'a BTreeMap<u32, u32>>,
0 commit comments