From ff455f1a42498c6adbad36fda4ee7d87a30bb9ec Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 30 Dec 2010 03:05:24 +0100 Subject: [PATCH] Don't delete the whole table, as other module instances may already have started rooms. --- src/mod_muc/mod_muc.erl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mod_muc/mod_muc.erl b/src/mod_muc/mod_muc.erl index c8df525f8..3a1b366a1 100644 --- a/src/mod_muc/mod_muc.erl +++ b/src/mod_muc/mod_muc.erl @@ -298,7 +298,6 @@ migrate(After) -> %% Description: Initiates the server %%-------------------------------------------------------------------- init([Host, Opts]) -> - update_muc_online_table(), MyHost_L = gen_mod:expand_host_name(Host, Opts, "conference"), MyHost = list_to_binary(MyHost_L), Backend = gen_mod:get_opt(backend, Opts, mnesia), @@ -1014,11 +1013,3 @@ get_vh_rooms_all_nodes(Host) -> get_vh_rooms(Host) when is_binary(Host) -> gen_storage:dirty_select(Host, muc_online_room, [{'=', name_host, {'_', Host}}]). - -update_muc_online_table() -> - case catch mnesia:table_info(muc_online_room, local_content) of - false -> - mnesia:delete_table(muc_online_room); - _ -> - ok - end.