Skip to content

Commit

Permalink
Fix tuple mistake
Browse files Browse the repository at this point in the history
Otherwise leveled_pclerk will crash if there is a partial merge that results in an an empty addition
  • Loading branch information
martinsumner committed Jan 20, 2025
1 parent 74c7ff6 commit a73b9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leveled_pclerk.erl
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ do_merge(

add_entry(empty, FileName, _TS1, Additions) ->
leveled_log:log(pc013, [FileName]),
{[], [], Additions};
{Additions, [], []};
add_entry({ok, Pid, Reply, Bloom}, FileName, TS1, Additions) ->
{{KL1Rem, KL2Rem}, SmallestKey, HighestKey} = Reply,
Entry =
Expand Down

0 comments on commit a73b9b8

Please sign in to comment.