package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

AssertSideloadedRaftCommandInlined asserts that if the provided entry is a sideloaded entry, then its payload has already been inlined.
Compact constructs a write that compacts the raft log from currentTruncatedState up to suggestedTruncatedState.
LoadEntries retrieves entries from the engine.
LoadTerm returns the term of the entry at the given index for the specified range.
MakeMsgStorageAppend constructs a MsgStorageAppend from a raftpb.Message.
MaybeInlineSideloadedRaftCommand takes an entry and inspects it.
MaybeSideloadEntries optimizes handling for AddSST requests.
NewDiskSideloadStorage creates a SideloadStorage for a given replica, stored in the specified engine.
NewRaftEntriesSoftLimit returns the SoftLimit configured with the default memory limit.
NewStateLoader creates a log StateLoader for the given range.
NewSyncWaiterLoop constructs a SyncWaiterLoop.

# Variables

DisableSyncRaftLog disables raft log synchronization and can cause data loss.

# Structs

AppendStats describes a completed log storage append operation.
BytesAccount acquires bytes from SoftLimit, and releases them at the end of the lifetime.
DiskSideloadStorage implements SideloadStorage using the given storage engine.
LogStore is a stub of a separated Raft log storage.
Metrics contains metrics specific to the log storage.
RaftState stores information about the last entry and the size of the log.
SoftLimit is a byte size limit with weak guarantees.
StateLoader gives access to read or write the state of the Raft log.
SyncWaiterLoop waits on a sequence of in-progress disk writes, notifying callbacks when their corresponding disk writes have completed.

# Interfaces

SideloadStorage is the interface used for Raft SSTable sideloading.
SyncCallback is a callback that is notified when a raft log write has been durably committed to disk.

# Type aliases

MsgStorageAppend is a raftpb.Message with type MsgStorageAppend.
MsgStorageAppendDone encapsulates the actions to do after MsgStorageAppend is done, such as sending messages back to raft node and its peers.