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

Method LastIndex

lib/datastore/flydb.go:45–47  ·  view source on GitHub ↗

LastIndex is a method on FlyDbStore that returns the last index in the log

()

Source from the content-addressed store, hash-verified

43
44// LastIndex is a method on FlyDbStore that returns the last index in the log
45func (fds *FlyDbStore) LastIndex() (uint64, error) {
46 return fds.lastIndex, nil
47}
48
49// GetLog is a method on FlyDbStore that retrieves a log entry by its index
50func (fds *FlyDbStore) GetLog(index uint64, log *raft.Log) error {

Callers 10

TestNewFunction · 0.45
TestWal_WriteFunction · 0.45
TestWal_ReadFunction · 0.45
WriteMethod · 0.45
ReadLastMethod · 0.45
NewFunction · 0.45
TestInMemStore_LastIndexFunction · 0.45
TestFlyDbStore_LastIndexFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestNewFunction · 0.36
TestWal_WriteFunction · 0.36
TestWal_ReadFunction · 0.36
TestInMemStore_LastIndexFunction · 0.36
TestFlyDbStore_LastIndexFunction · 0.36