Don't call ejabberd_cluster from its submodules

Fixes #2971
This commit is contained in:
Evgeny Khramtsov 2019-07-31 19:25:22 +03:00
parent 465e1f5ee1
commit 059cf8fed1
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ replicate_database(Node) ->
mnesia:change_table_copy_type(schema, node(), disc_copies),
lists:foreach(
fun(Table) ->
Type = ejabberd_cluster:call(Node, mnesia, table_info, [Table, storage_type]),
Type = rpc:call(Node, mnesia, table_info, [Table, storage_type]),
mnesia:add_table_copy(Table, node(), Type)
end, mnesia:system_info(tables)--[schema]).