Documentation
¶
Index ¶
Constants ¶
View Source
const ( Version = 1 OpSetRID = byte(0) OpSetInline = byte(1) OpDelete = byte(2) )
Variables ¶
View Source
var ( ErrCorrupt = errors.New("commitlog: corrupt record") ErrRecordTooLarge = errors.New("commitlog: record too large") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// MaxSegmentSize bounds the total commitlog segment payload size (bytes).
// 0 uses the default limit; values < 0 disable the cap.
MaxSegmentSize int64
// Compress enables best-effort zstd compression for commitlog segments.
// Segments are only stored compressed when the compressed payload (plus a
// small header) is smaller than the raw payload, so compression never causes
// size amplification. Small segments are left uncompressed to avoid adding
// hot-path CPU overhead for minimal disk savings.
Compress bool
}
Click to show internal directories.
Click to hide internal directories.