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

# Functions

Make creates a a StateLoader.
WriteInitialReplicaState sets up a new Range, but without writing an associated Raft state (which must be written separately via synthesizeRaftState before instantiating a Replica).
WriteInitialState calls WriteInitialReplicaState followed by SynthesizeRaftState.

# Constants

TruncatedStateLegacyReplicated means use the legacy (replicated) key.
TruncatedStateUnreplicated means use the new (unreplicated) key.

# Structs

StateLoader contains accessor methods to read or write the fields of storagebase.ReplicaState.

# Type aliases

TruncatedStateType determines whether to use a replicated (legacy) or an unreplicated TruncatedState.