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

Function write_raft_chunk

nodedb/tests/corruption_quarantine.rs:69–71  ·  view source on GitHub ↗

Produce a valid framed Raft snapshot chunk.

()

Source from the content-addressed store, hash-verified

67
68/// Produce a valid framed Raft snapshot chunk.
69fn write_raft_chunk() -> Vec<u8> {
70 encode_snapshot_chunk(SnapshotEngineId::Columnar, b"snapshot-payload")
71}
72
73/// Corrupt the last byte of a segment buffer (flips the footer CRC).
74fn corrupt_last_byte(mut bytes: Vec<u8>) -> Vec<u8> {

Calls 1

encode_snapshot_chunkFunction · 0.85

Tested by

no test coverage detected