Delete the ETS table from CDB files

Rather than simply dereference it - delete it
This commit is contained in:
martinsumner 2017-03-21 01:31:42 +00:00
parent 419541f5dd
commit e18d2f2f00

View file

@ -364,6 +364,7 @@ rolling({return_hashtable, IndexList, HashTreeBin}, _From, State) ->
file:close(Handle),
ok = rename_for_read(State#state.filename, NewName),
leveled_log:log("CDB03", [NewName]),
ets:delete(State#state.hashtree),
{NewHandle, Index, LastKey} = open_for_readonly(NewName,
State#state.last_key),
case State#state.deferred_delete of