25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

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

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]).