From 059cf8fed1459b6380e25dae4c7b5776e06d66dd Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Wed, 31 Jul 2019 19:25:22 +0300 Subject: [PATCH] Don't call ejabberd_cluster from its submodules Fixes #2971 --- src/ejabberd_cluster_mnesia.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_cluster_mnesia.erl b/src/ejabberd_cluster_mnesia.erl index fb793cda8..60539330c 100644 --- a/src/ejabberd_cluster_mnesia.erl +++ b/src/ejabberd_cluster_mnesia.erl @@ -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]).