Delete the ETS table from CDB files
Rather than simply dereference it - delete it
This commit is contained in:
parent
419541f5dd
commit
e18d2f2f00
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue