Skip to content

Commit

Permalink
Fix ar_kv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shizzard committed Oct 3, 2024
1 parent bb6b6f3 commit c21fccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/arweave/src/ar_kv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ open(#db{} = DbRec0) ->



%% Attempt to close the database.
%% Attempt to close the database and remove the ETS entries related to it.
%% This function WILL NOT perform any actions regarding persistence: it is up to
%% the user to ensure that both flush/1 and sync_wal/1 functions are called prior
%% calling this function.
Expand All @@ -426,6 +426,7 @@ close(#db{db_handle = Db, name = Name}) ->
try
case rocksdb:close(Db) of
ok ->
true = ets:match_delete(?MODULE, #db{db_handle = Db, _ = '_'}),
?LOG_INFO([{event, db_operation}, {op, close}, {name, io_lib:format("~p", [Name])}]);
{error, CloseError} ->
?LOG_ERROR([
Expand Down

0 comments on commit c21fccd

Please sign in to comment.