Skip to content

Commit

Permalink
Update riak_kv_ttaaefs_manager.erl (#13)
Browse files Browse the repository at this point in the history
For bucket-based full-sync `{tree_compare, 0}` is the return on success.
  • Loading branch information
martinsumner authored Nov 13, 2023
1 parent c1fcd0f commit ec57d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/riak_kv_ttaaefs_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ handle_cast({reply_complete, ReqID, Result}, State) ->
riak_kv_stat:update({ttaaefs, sync_fail, Duration}),
{?CRASH_TIMEOUT, State#state{previous_success = false}};
{SyncState, 0} when SyncState == root_compare;
SyncState == branch_compare ->
SyncState == branch_compare;
SyncState == tree_compare ->
riak_kv_stat:update({ttaaefs, sync_sync, Duration}),
lager:info("exchange=~w complete result=~w in duration=~w s" ++
" sync_state=true",
Expand Down

0 comments on commit ec57d3c

Please sign in to comment.