Skip to content

Commit

Permalink
Fixup conspire_leader
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjen1 committed Jan 6, 2024
1 parent bd73360 commit ef3abaa
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions impl/lib/conspire_leader.ml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,19 @@ struct
let update_result = Conspire.handle_update_message t.conspire src m in
match update_result with
| Error `MustAck ->
Act.traceln "Acking %d" src;
ack_counter () ; send t src
| Error (`MustNack reason) ->
( match reason with
| `Root_of_update_not_found _ ->
Act.dtraceln "Nack: Update is not rooted"
| `Commit_index_not_in_tree ->
Act.dtraceln "Nack: Commit index not in tree"
| `VVal_not_in_tree ->
Act.dtraceln "Nack: VVal not int tree" ) ;
nack_counter () ; nack t src
Act.traceln "Nack for %d: %s" src
( match reason with
| `Root_of_update_not_found _ ->
"Update is not rooted"
| `Commit_index_not_in_tree ->
"Commit index not in tree"
| `VVal_not_in_tree ->
"VVal not int tree" ) ;
nack_counter () ;
nack t src
| Ok () ->
process_acceptor_state t.conspire src ;
let conflict_recovery_attempt =
Expand Down

0 comments on commit ef3abaa

Please sign in to comment.