• Ozan Tezcan's avatar
    Simplify entry removal (#130) · c0270e61
    Ozan Tezcan authored
    Simplied pop callback.
    
    Previously, libraft was passing a callback(raft_entry_notify_f) to the pop callback.
    The application was supposed to call that callback for each removed entry.
    
    Libraft can loop over the entries and call the required functions itself.
    So, we can delete raft_entry_notify_f from the pop callback just to
    simplify API.
    
    In addition to that, this PR removes raft_pop_entry() function which doesn't have
    a use-case, as far as I can see.
    We can use raft_delete_entry_from_idx(me, raft_get_current_idx()) instead if required.
    c0270e61
test_server.c 159 KB