MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / StoreLog

Method StoreLog

lib/datastore/flydb.go:62–64  ·  view source on GitHub ↗

StoreLog is a method on FlyDbStore that stores a single log entry

(log *raft.Log)

Source from the content-addressed store, hash-verified

60
61// StoreLog is a method on FlyDbStore that stores a single log entry
62func (fds *FlyDbStore) StoreLog(log *raft.Log) error {
63 return fds.StoreLogs([]*raft.Log{log}) // Call the StoreLogs method with a single log entry
64}
65
66// StoreLogs is a method on FlyDbStore that stores multiple log entries
67// since FlyDB currently does not support transactions,

Callers 4

TestBoltDbStore_StoreLogFunction · 0.45
TestInMemStore_StoreLogFunction · 0.45
TestFlyDbStore_StoreLogFunction · 0.45

Calls 1

StoreLogsMethod · 0.95

Tested by 4

TestBoltDbStore_StoreLogFunction · 0.36
TestInMemStore_StoreLogFunction · 0.36
TestFlyDbStore_StoreLogFunction · 0.36