Raft::Log::Segment(T)
Constructors
Instance methods
append(entry : LogEntry(T))
SourceByte range within this segment file occupied by the entry at index.
Returns {offset, length}.
close
Sourcecount
Sourcefd
Underlying file descriptor. Exposed for future zero-copy senders (sendfile/splice/io_uring).
first_index
Sourcelast_index
Sourcesize
Sourcesync
Push buffered writes to the kernel page cache, then flush page cache to the device. Called at Raft durability boundaries (see Node#propose, Node#handle_append_entries, etc.). Two syscalls (write + fsync) per call.