From 8673d2926d337dbbcd3e20809f14a8784f20517b Mon Sep 17 00:00:00 2001 From: AquarHEAD Lou Date: Wed, 12 Sep 2018 11:01:05 +0000 Subject: [PATCH] Expect mnesia_up event when joining cluster --- src/mod_muc_mnesia.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod_muc_mnesia.erl b/src/mod_muc_mnesia.erl index 918ce1dcb..43cf1aa01 100644 --- a/src/mod_muc_mnesia.erl +++ b/src/mod_muc_mnesia.erl @@ -340,6 +340,8 @@ handle_cast(_Msg, State) -> handle_info({mnesia_system_event, {mnesia_down, Node}}, State) -> clean_table_from_bad_node(Node), {noreply, State}; +handle_info({mnesia_system_event, {mnesia_up, _Node}}, State) -> + {noreply, State}; handle_info(Info, State) -> ?ERROR_MSG("unexpected info: ~p", [Info]), {noreply, State}. -- 2.40.0