refactor: compact_log semantics and test
- Now
raft_storage::compact_log()
function returnsfirst_index
instead ofn_deleted
as it used to - it had no practical purpose. - Add a missing test for
pico.raft_compact_log
Lua API. - Change the Lua API to be more alike other relevant Lua functions:
raft_propose_*
,raft_read_index
,raft_timeout_now
.
Edited by Yaroslav Dynnikov