MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / replay_from_limit

Method replay_from_limit

nodedb-wal/src/segmented.rs:225–231  ·  view source on GitHub ↗

Paginated replay (delegates to standalone `replay_from_limit_dir`).

(
        &self,
        from_lsn: u64,
        max_records: usize,
    )

Source from the content-addressed store, hash-verified

223
224 /// Paginated replay (delegates to standalone `replay_from_limit_dir`).
225 pub fn replay_from_limit(
226 &self,
227 from_lsn: u64,
228 max_records: usize,
229 ) -> Result<(Vec<WalRecord>, bool)> {
230 replay_from_limit_dir(&self.wal_dir, from_lsn, max_records)
231 }
232
233 /// List all segment metadata (for monitoring / operational tooling).
234 pub fn list_segments(&self) -> Result<Vec<SegmentMeta>> {

Calls 1

replay_from_limit_dirFunction · 0.85

Tested by 4

replay_from_limit_basicFunction · 0.36
replay_from_limit_emptyFunction · 0.36