Fix crash in recovery code
This commit is contained in:
parent
1715c29364
commit
810d183770
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ new(Directory, MinLevel, MaxLevel, Config) ->
|
||||||
|
|
||||||
|
|
||||||
recover(Directory, TopLevel, 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),
|
hanoidb_util:ensure_expiry(Config),
|
||||||
case file:read_file_info(?LOGFILENAME(Directory)) of
|
case file:read_file_info(?LOGFILENAME(Directory)) of
|
||||||
{ok, _} ->
|
{ok, _} ->
|
||||||
|
|
Loading…
Reference in a new issue