raftLog

Undocumented in source.

Constructors

this
this(Storage storage)
Undocumented in source.

Members

Functions

GetSnap
ErrString GetSnap(Snapshot ss)
Undocumented in source. Be warned that the author may not have intended to support it.
allEntries
Entry[] allEntries()
Undocumented in source. Be warned that the author may not have intended to support it.
append
ulong append(Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
appliedTo
void appliedTo(ulong i)
Undocumented in source. Be warned that the author may not have intended to support it.
commitTo
void commitTo(ulong tocommit)
Undocumented in source. Be warned that the author may not have intended to support it.
entries
ErrString entries(ulong i, ulong maxsize, Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
findConflict
ulong findConflict(Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
firstIndex
ulong firstIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
hasNextEnts
bool hasNextEnts()
Undocumented in source. Be warned that the author may not have intended to support it.
isUpToDate
bool isUpToDate(ulong lasti, ulong term)
Undocumented in source. Be warned that the author may not have intended to support it.
lastIndex
ulong lastIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
lastTerm
ulong lastTerm()
Undocumented in source. Be warned that the author may not have intended to support it.
matchTerm
bool matchTerm(ulong i, ulong t)
Undocumented in source. Be warned that the author may not have intended to support it.
maybeAppend
bool maybeAppend(ulong index, ulong logTerm, ulong committed, Entry[] ents, ulong lastnewi)
Undocumented in source. Be warned that the author may not have intended to support it.
maybeCommit
bool maybeCommit(ulong maxIndex, ulong t)
Undocumented in source. Be warned that the author may not have intended to support it.
mustCheckOutOfBounds
ErrString mustCheckOutOfBounds(ulong lo, ulong hi)
Undocumented in source. Be warned that the author may not have intended to support it.
nextEnts
Entry[] nextEnts()
Undocumented in source. Be warned that the author may not have intended to support it.
restore
void restore(Snapshot ss)
Undocumented in source. Be warned that the author may not have intended to support it.
slice
ErrString slice(ulong lo, ulong hi, ulong maxSize, Entry[] ents)
Undocumented in source. Be warned that the author may not have intended to support it.
stableSnapTo
void stableSnapTo(ulong i)
Undocumented in source. Be warned that the author may not have intended to support it.
stableTo
void stableTo(ulong i, ulong t)
Undocumented in source. Be warned that the author may not have intended to support it.
term
ErrString term(ulong i, ulong term)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
unstableEntries
Entry[] unstableEntries()
Undocumented in source. Be warned that the author may not have intended to support it.
zeroTermOnErrCompacted
ulong zeroTermOnErrCompacted(ulong t, ErrString err)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_applied
ulong _applied;
Undocumented in source.
_committed
ulong _committed;
Undocumented in source.
_storage
Storage _storage;
Undocumented in source.
_unstable
unstable _unstable;
Undocumented in source.

Meta