MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / loadWalFile

Method loadWalFile

consensus/state.go:401–410  ·  view source on GitHub ↗

loadWalFile loads WAL data from file. It overwrites cs.wal.

()

Source from the content-addressed store, hash-verified

399
400// loadWalFile loads WAL data from file. It overwrites cs.wal.
401func (cs *State) loadWalFile() error {
402 wal, err := cs.OpenWAL(cs.config.WalFile())
403 if err != nil {
404 cs.Logger.Error("failed to load state WAL", "err", err)
405 return err
406 }
407
408 cs.wal = wal
409 return nil
410}
411
412// OnStop implements service.Service.
413func (cs *State) OnStop() {

Callers 1

OnStartMethod · 0.95

Calls 3

OpenWALMethod · 0.95
WalFileMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected