diff --git a/src/hanoidb_level.erl b/src/hanoidb_level.erl index 52e4696..0a6faeb 100644 --- a/src/hanoidb_level.erl +++ b/src/hanoidb_level.erl @@ -403,6 +403,7 @@ main_loop(State = #state{ next=Next }) -> %% and we have finished the incremental merge at this level State2 = reply_step_ok(State), + erlang:demonitor(MRef, [flush]), main_loop(State2#state{ step_next_ref=undefined }); ?CALL(From, close) ->