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

Method StoreLog

lib/datastore/rocksdb.go:71–73  ·  view source on GitHub ↗

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

(log *raft.Log)

Source from the content-addressed store, hash-verified

69
70// StoreLog is a method on RocksDbStore that stores a single log entry
71func (rds *RocksDbStore) StoreLog(log *raft.Log) error {
72 return rds.StoreLogs([]*raft.Log{log}) // Call the StoreLogs method with a single log entry
73}
74
75// StoreLogs is a method on RocksDbStore that stores multiple log entries
76func (rds *RocksDbStore) StoreLogs(logs []*raft.Log) error {

Callers

nothing calls this directly

Calls 1

StoreLogsMethod · 0.95

Tested by

no test coverage detected