]> granicus.if.org Git - ejabberd/commitdiff
Expect mnesia_up event when joining cluster
authorAquarHEAD Lou <aquarhead@ela.build>
Wed, 12 Sep 2018 11:01:05 +0000 (11:01 +0000)
committerAquarHEAD Lou <aquarhead@ela.build>
Wed, 12 Sep 2018 11:01:05 +0000 (11:01 +0000)
src/mod_muc_mnesia.erl

index 918ce1dcb19ac0fee5bf106dd771c86ef1d9bc2e..43cf1aa0104873241046a7d089753077c81f2b46 100644 (file)
@@ -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}.