truncateFrom

abstract suspend fun truncateFrom(index: Long)

Removes all log entries with index >= [index].

Called during log conflict resolution when a follower's log diverges from the leader's. After truncation, appendEntries is called to write the correct entries from the leader.