diff --git a/src/ra_server.erl b/src/ra_server.erl index 5ee6bf78..f0ab3c41 100644 --- a/src/ra_server.erl +++ b/src/ra_server.erl @@ -1921,6 +1921,7 @@ make_rpc_effect(PeerId, #{next_index := Next} = Peer, MaxBatchSize, State#{log => Log}, EntryCache); {LastIdx, _} -> + ?DEBUG("snapshot idx ~b", [LastIdx]), SnapState = ra_log:snapshot_state(Log), %% don't increment the next index here as we will do %% that once the snapshot is fully replicated