refactor: compact_log semantics and test
- Now
raft_storage::compact_log()function returnsfirst_indexinstead ofn_deletedas it used to - it had no practical purpose. - Add a missing test for
pico.raft_compact_logLua 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