Fix crash in recovery code

This commit is contained in:
Kresten Krab Thorup 2014-11-26 13:59:36 +01:00
parent 1715c29364
commit 810d183770

View file

@ -51,7 +51,7 @@ new(Directory, MinLevel, MaxLevel, Config) ->
recover(Directory, TopLevel, MinLevel, MaxLevel, Config)
when MinLevel < MaxLevel, is_integer(MinLevel), is_integer(MaxLevel) ->
when MinLevel =< MaxLevel, is_integer(MinLevel), is_integer(MaxLevel) ->
hanoidb_util:ensure_expiry(Config),
case file:read_file_info(?LOGFILENAME(Directory)) of
{ok, _} ->