Fix plain bug

This commit is contained in:
Kresten Krab Thorup 2014-04-02 22:39:43 +02:00
parent e37623a84c
commit ce3a7049f2

View file

@ -209,7 +209,7 @@ do_range_fold(Fun, Acc0, File, Range, N0) ->
({Key,?TOMBSTONE}, {N1,Acc}) when ?KEY_IN_FROM_RANGE(Key,Range) -> ({Key,?TOMBSTONE}, {N1,Acc}) when ?KEY_IN_FROM_RANGE(Key,Range) ->
{continue, {N1, Fun(Key, ?TOMBSTONE, Acc)}}; {continue, {N1, Fun(Key, ?TOMBSTONE, Acc)}};
({Key,{?TOMBSTONE,TStamp}}, {N1,Acc}) when ?KEY_IN_FROM_RANGE(Key,Range) -> ({Key,{?TOMBSTONE,TStamp}}, {N1,Acc}) when ?KEY_IN_FROM_RANGE(Key,Range) ->
case hanoidb_utils:has_expired(TStamp) of case hanoidb_util:has_expired(TStamp) of
true -> true ->
{continue, {N1,Acc}}; {continue, {N1,Acc}};
false -> false ->