We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd0b67 commit d275498Copy full SHA for d275498
src/id.rs
@@ -16,6 +16,10 @@ impl std::ops::Deref for IdGenerator {
16
}
17
18
impl IdGenerator {
19
+ pub fn new(start: u64) -> Self {
20
+ Self(Arc::new(AtomicU64::new(start)))
21
+ }
22
+
23
pub fn next(&self) -> SegmentId {
24
self.fetch_add(1, std::sync::atomic::Ordering::SeqCst)
25
src/value_log.rs
@@ -35,10 +35,6 @@ pub struct ValueLogInner {
35
36
path: PathBuf,
37
38
- // TODO: maybe not needed persistently...
39
- /// External index
40
- // pub index: I,
41
-
42
/// In-memory blob cache
43
blob_cache: Arc<BlobCache>,
44
0 commit comments