Skip to content

Commit 7d4a2d1

Browse files
comment tweaks
1 parent 8db4cad commit 7d4a2d1

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

storage/src/journal/contiguous/fixed.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@
4040
//!
4141
//! # Metadata
4242
//!
43-
//! Metadata consists of two optional keys:
43+
//! Metadata contains the following keys:
4444
//! - PRUNING_BOUNDARY_KEY: Stores the pruning boundary as a u64 when it's mid-section (not a
4545
//! multiple of items_per_blob). Absent from legacy journals or when the boundary is
4646
//! section-aligned, since it can be derived from the oldest blob.
47-
//! - RECOVERY_WATERMARK_KEY: Stores the last logical size at which the fixed journal's entries and
48-
//! metadata were synced as a coherent recovery checkpoint for external consumers. Fixed-journal
49-
//! recovery does not use this value to decide whether short blobs are corrupt. Absent on journals
50-
//! created before this key was added; those journals recover from the newest retained blob using
51-
//! the old rollover-sync invariant, then write the key before accepting new appends.
47+
//! - RECOVERY_WATERMARK_KEY: Stores a lower bound on the last logical size at which the fixed
48+
//! journal's entries and metadata were synced as a coherent recovery checkpoint by an external
49+
//! consumer. The key is durably written during initialization for any journal last opened before
50+
//! this key was introduced.
5251
//!
5352
//! RECOVERY_WATERMARK_KEY is mainly useful when this journal is used as an index for a layered
5453
//! journal, such as the variable journal's offsets. Standalone fixed journals do not need it to

0 commit comments

Comments
 (0)