fix: used to persist applied index before commit index
Compare changes
fix: don't compact unapplied entries
test: implement basic error injection & add some tests for main loop
fix: used to persist applied index before commit index
This could result in a broken instance if it terminated in between the two storage writes. Now we always persist the commit index before applying the persisted entries and do so in a transaction with unstable entries or snapshot if they are present.
fix: minor tweaks
refactor: extract prepare_for_snapshot function
refactor: use a watch channel instead of Event::EntryApplied
Close #418 (closed)
luamod.rs