Check not snap
Make sure snapshots cannot trigger deletion
This commit is contained in:
parent
0f7e421371
commit
acdc702e7d
1 changed files with 1 additions and 0 deletions
|
@ -397,6 +397,7 @@ handle_call(confirm_compact, _From, State) ->
|
||||||
{reply, leveled_inker:ink_compactionpending(State#state.inker), State};
|
{reply, leveled_inker:ink_compactionpending(State#state.inker), State};
|
||||||
handle_call(close, _From, State) ->
|
handle_call(close, _From, State) ->
|
||||||
{stop, normal, ok, State};
|
{stop, normal, ok, State};
|
||||||
|
handle_call(destroy, _From, State=#state{is_snapshot=Snp}) when Snp == false ->
|
||||||
{stop, destroy, ok, State}.
|
{stop, destroy, ok, State}.
|
||||||
|
|
||||||
handle_cast(_Msg, State) ->
|
handle_cast(_Msg, State) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue