Close in all cases
in leveled_imanifest
This commit is contained in:
parent
a04ed53855
commit
f907fb5c97
2 changed files with 3 additions and 2 deletions
|
@ -57,6 +57,7 @@ generate_entry(Journal) ->
|
||||||
ok = leveled_cdb:cdb_close(PidR),
|
ok = leveled_cdb:cdb_close(PidR),
|
||||||
[{StartSQN, NewFN, PidR, LastKey}];
|
[{StartSQN, NewFN, PidR, LastKey}];
|
||||||
empty ->
|
empty ->
|
||||||
|
ok = leveled_cdb:cdb_close(PidR),
|
||||||
leveled_log:log("IC013", [NewFN]),
|
leveled_log:log("IC013", [NewFN]),
|
||||||
[]
|
[]
|
||||||
end.
|
end.
|
||||||
|
|
|
@ -93,8 +93,8 @@ init_backend_adapt(S, [Tag, Options, Name]) ->
|
||||||
|
|
||||||
%% @doc init_backend - The actual operation
|
%% @doc init_backend - The actual operation
|
||||||
%% Start the database and read data from disk
|
%% Start the database and read data from disk
|
||||||
init_backend(_Tag, Options, Name) ->
|
init_backend(_Tag, Options0, Name) ->
|
||||||
Options0 = proplists:delete(log_level, Options),
|
% Options0 = proplists:delete(log_level, Options),
|
||||||
case leveled_bookie:book_start(Options0) of
|
case leveled_bookie:book_start(Options0) of
|
||||||
{ok, Bookie} ->
|
{ok, Bookie} ->
|
||||||
unlink(Bookie),
|
unlink(Bookie),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue