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

Function NewMemWal

kayak/wal/mem_wal.go:37–44  ·  view source on GitHub ↗

NewMemWal returns new memory wal instance.

()

Source from the content-addressed store, hash-verified

35
36// NewMemWal returns new memory wal instance.
37func NewMemWal() (p *MemWal) {
38 p = &MemWal{
39 revIndex: make(map[uint64]int, 100000),
40 logs: make([]*kt.Log, 0, 100000),
41 }
42
43 return
44}
45
46// Write implements Wal.Write.
47func (p *MemWal) Write(l *kt.Log) (err error) {

Callers 2

TestMemWal_WriteFunction · 0.85
TestMemWal_Write2Function · 0.85

Calls

no outgoing calls

Tested by 2

TestMemWal_WriteFunction · 0.68
TestMemWal_Write2Function · 0.68