Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultBufferSize = 1 << 27
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options wal options to create new WAL. WAL logs uses cyclic rotation to avoid fragmentation. It allocates free blocks only when log reaches target size
type Reader ¶
Reader reads logs from WAL. Reader reader is a simple iterator over log data
type WAL ¶
type WAL struct {
// contains filtered or unexported fields
}
WAL write ahead logs to recover db commit failure dues to db crash or other unexpected errors
func New ¶
New will open a WAL. If the previous run did not shut down cleanly, a set of upper seq will be returned which got committed successfully to the WAL, but were never signaled as fully completed.
If no WAL exists, a new one will be created.
func (*WAL) SignalLogApplied ¶
SignalLogApplied informs the WAL that it is safe to reuse blocks.
Click to show internal directories.
Click to hide internal directories.