summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem3_cache.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem3_cache.erl b/src/mem3_cache.erl
index 1d1bbe9b..38cc57ef 100644
--- a/src/mem3_cache.erl
+++ b/src/mem3_cache.erl
@@ -23,6 +23,10 @@ handle_call(_Call, _From, State) ->
handle_cast(_Msg, State) ->
{noreply, State}.
+handle_info({'DOWN', _, _, Pid, {badarg, [{ets,delete,[partitions,_]}|_]}},
+ #state{changes_pid=Pid} = State) ->
+ % fatal error, somebody deleted our ets table
+ {stop, ets_table_error, State};
handle_info({'DOWN', _, _, Pid, Reason}, #state{changes_pid=Pid} = State) ->
?LOG_INFO("~p changes listener died ~p", [?MODULE, Reason]),
Seq = case Reason of {seq, EndSeq} -> EndSeq; _ -> 0 end,