Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed May 24, 2024
1 parent 37c2605 commit 38716d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ra_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,8 @@ make_rpc_effect(PeerId, #{next_index := Next} = Peer, MaxBatchSize,
{undefined, Log} ->
% The assumption here is that a missing entry means we need
% to send a snapshot.
?DEBUG("need to send snapshot idx ~p not found in ~p", [PrevIdx, Peer]),
?DEBUG("need to send snapshot idx ~p not found in ~p log ov ~p",
[PrevIdx, Peer, ra_log:overview(Log)]),
case ra_log:snapshot_index_term(Log) of
{PrevIdx, PrevTerm} ->
% Previous index is the same as snapshot index
Expand Down

0 comments on commit 38716d3

Please sign in to comment.