Skip to content

Commit c7fa517

Browse files
authored
Fix tuple mistake (#473)
Otherwise leveled_pclerk will crash if there is a partial merge that results in an an empty addition
1 parent 74c7ff6 commit c7fa517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leveled_pclerk.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ do_merge(
389389

390390
add_entry(empty, FileName, _TS1, Additions) ->
391391
leveled_log:log(pc013, [FileName]),
392-
{[], [], Additions};
392+
{Additions, [], []};
393393
add_entry({ok, Pid, Reply, Bloom}, FileName, TS1, Additions) ->
394394
{{KL1Rem, KL2Rem}, SmallestKey, HighestKey} = Reply,
395395
Entry =

0 commit comments

Comments
 (0)