MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / walExists

Method walExists

store/engine/raft/store.go:70–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (ds *DataStore) walExists() bool {
71 return wal.Exist(ds.walDir)
72}
73
74func (ds *DataStore) loadSnapshotFromDisk() (*raftpb.Snapshot, error) {
75 if !fileutil.Exist(ds.snapshotDir) {

Callers 3

loadSnapshotFromDiskMethod · 0.95
openWALMethod · 0.95
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected