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 941e6c2 commit b8d39fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ra_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,9 @@ wal_write_batch(#?MODULE{cfg = #cfg{uid = UId,
truncate_cache(_FromIdx, ToIdx,
#?MODULE{cache = Cache} = State,
Effects) ->
{State#?MODULE{cache = ra_log_cache:trim(ToIdx, Cache)}, Effects}.
CacheAfter = ra_log_cache:trim(ToIdx, Cache),
ct:pal("cache range after trim ~p", [ra_log_cache:range(CacheAfter)]),
{State#?MODULE{cache = CacheAfter}, Effects}.

maybe_append_first_entry(State0 = #?MODULE{last_index = -1}) ->
State = append({0, 0, undefined}, State0),
Expand Down

0 comments on commit b8d39fb

Please sign in to comment.