MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / MemWal

Struct MemWal

kayak/wal/mem_wal.go:28–34  ·  view source on GitHub ↗

MemWal defines a toy wal using memory as storage.

Source from the content-addressed store, hash-verified

26
27// MemWal defines a toy wal using memory as storage.
28type MemWal struct {
29 sync.RWMutex
30 logs []*kt.Log
31 revIndex map[uint64]int
32 offset uint64
33 closed uint32
34}
35
36// NewMemWal returns new memory wal instance.
37func NewMemWal() (p *MemWal) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected