Skip to content

Commit d275498

Browse files
committed
wip
1 parent 7fd0b67 commit d275498

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/id.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ impl std::ops::Deref for IdGenerator {
1616
}
1717

1818
impl IdGenerator {
19+
pub fn new(start: u64) -> Self {
20+
Self(Arc::new(AtomicU64::new(start)))
21+
}
22+
1923
pub fn next(&self) -> SegmentId {
2024
self.fetch_add(1, std::sync::atomic::Ordering::SeqCst)
2125
}

src/value_log.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ pub struct ValueLogInner {
3535

3636
path: PathBuf,
3737

38-
// TODO: maybe not needed persistently...
39-
/// External index
40-
// pub index: I,
41-
4238
/// In-memory blob cache
4339
blob_cache: Arc<BlobCache>,
4440

0 commit comments

Comments
 (0)