Check not snap

Make sure snapshots cannot trigger deletion
This commit is contained in:
martinsumner 2016-11-21 12:35:20 +00:00
parent 0f7e421371
commit acdc702e7d

View file

@ -397,6 +397,7 @@ handle_call(confirm_compact, _From, State) ->
{reply, leveled_inker:ink_compactionpending(State#state.inker), State};
handle_call(close, _From, State) ->
{stop, normal, ok, State};
handle_call(destroy, _From, State=#state{is_snapshot=Snp}) when Snp == false ->
{stop, destroy, ok, State}.
handle_cast(_Msg, State) ->