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

Method replay

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

Replay all committed records across all segments, in LSN order. Used for crash recovery on startup.

(&self)

Source from the content-addressed store, hash-verified

206 ///
207 /// Used for crash recovery on startup.
208 pub fn replay(&self) -> Result<Vec<WalRecord>> {
209 replay_all_segments(&self.wal_dir)
210 }
211
212 /// Replay only records with LSN >= `from_lsn`.
213 ///

Callers 6

replay_fromMethod · 0.45
replay_after_closeFunction · 0.45
reopen_continues_lsnFunction · 0.45
start_on_dir_refMethod · 0.45

Calls 1

replay_all_segmentsFunction · 0.85

Tested by 4

replay_after_closeFunction · 0.36
reopen_continues_lsnFunction · 0.36