set max_index and log_max_term to 0 when log is empty
set max_index and log_max_term to 0 when log is empty
sadly had to stop using our awesome method firsty