rabbitmq / ra

A Raft implementation for Erlang and Elixir that strives to be efficient and make it easier to use multiple Raft clusters in a single system.
Other
813 stars 96 forks source link

Fix bugs in log cache truncation #259

Closed kjnilsson closed 2 years ago

kjnilsson commented 2 years ago

There are cases where the cache was never truncated.

Also make the truncate_cache function a bit simpler and more likely to eventually catch cases where the cache may be growing.