Skip to content

Commit

Permalink
Update value_log.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 authored Jul 26, 2024
1 parent 654c03b commit 75f2a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/value_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::{
#[allow(clippy::module_name_repetitions)]
pub type ValueLogId = u64;

/// Hands out a unique (monotonically increasing) value log ID
/// Hands out a unique (monotonically increasing) value log ID.
pub fn get_next_vlog_id() -> ValueLogId {
static VLOG_ID_COUNTER: AtomicU64 = AtomicU64::new(0);
VLOG_ID_COUNTER.fetch_add(1, std::sync::atomic::Ordering::Relaxed)
Expand Down Expand Up @@ -188,7 +188,7 @@ impl ValueLog {
})))
}

/// Registers writer.
/// Registers a [`SegmentWriter`].
///
/// # Errors
///
Expand All @@ -200,7 +200,7 @@ impl ValueLog {
Ok(())
}

/// Returns segment count.
/// Returns the amount of segments in the value log.
#[must_use]
pub fn segment_count(&self) -> usize {
self.manifest.len()
Expand All @@ -215,7 +215,7 @@ impl ValueLog {
self.get_with_prefetch(handle, 0)
}

/// Resolves a value handle.
/// Resolves a value handle, and prefetches some values after it.
///
/// # Errors
///
Expand Down

0 comments on commit 75f2a16

Please sign in to comment.