wal

package
v0.0.0-...-d427792 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EM byte = iota // empty entry
	EC             // end check point
	SC             // start check point
	AT             // abort transaction
	CT             // commmit transaction
	ST             // start transaction
	WD             // write data
	NP             // new prefix
	CP             // change prefix
	NS             // new suffix
)
View Source
const (
	SumSize    = 4
	RecordSize = 4
	HeaderSize = SumSize + RecordSize
)

Variables

This section is empty.

Functions

func NewWriter

func NewWriter(dir string) (*walWriter, error)

func Recover

func Recover(dir string, d data.Data, m mvcc.MVCC, c cache.Cache) (uint64, error)

Types

type Writer

type Writer interface {
	Close() error
	EndCKPT() error
	StartCKPT() error
	Append([]byte) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL