(all-log-indexes path)
(all-log-indexes path type)
Returns all index file names present in provided raft log path.
Returns all index file names present in provided raft log path.
(append file entries after-index current-index)
Append entries to log starting after-index relative to current-index.
Append entries to log starting after-index relative to current-index.
(assoc-index->term-cache index term)
Implements a simple fifo cache.
Implements a simple fifo cache.
(get-index->term-cache index)
(index->term file index)
Returns term of specified index number.
Returns term of specified index number.
(index->term* file index)
Returns term of specified index number.
Returns term of specified index number.
(latest-log-index path)
(latest-log-index path type)
Returns the most recent (largest) log index point.
Returns the most recent (largest) log index point.
(read-entry-range file start-index)
(read-entry-range file start-index end-index)
Reads index from start-index (inclusive) to end-index (inclusive).
Reads index from start-index (inclusive) to end-index (inclusive).
(remove-entries file start-index)
Removes entries from log from start-index (inclusive) to end.
Changes index of removed entries to -1, so ignored by future reads.
Removes entries from log from start-index (inclusive) to end. Changes index of removed entries to -1, so ignored by future reads.
(write-current-term file term)
Record latest term we've seen to persistent log.
Record latest term we've seen to persistent log.
(write-new-command file index entry)
Writes a new command as leader.
Writes a new command as leader.
(write-snapshot file snapshot-index snapshot-term)
(write-voted-for file term voted-for)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close