Skip to content

Commit

Permalink
fix: fix bug where chunk cache wasn't decremented for disk pool chunks
Browse files Browse the repository at this point in the history
eventually this caused the chunk cache to fill up and stall all
syncing and copying
  • Loading branch information
JamesPiechota committed Feb 3, 2025
1 parent b933cb9 commit 1c34d3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/arweave/src/ar_data_sync.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2988,6 +2988,7 @@ process_valid_fetched_chunk(ChunkArgs, Args, State) ->
true ->
add_chunk(
DataRoot, DataPath, UnpackedChunk, ChunkEndOffset - 1, TXSize),
decrement_chunk_cache_size(),
{noreply, State};
false ->
pack_and_store_chunk({DataRoot, AbsoluteEndOffset, TXPath, TXRoot,
Expand Down

0 comments on commit 1c34d3d

Please sign in to comment.