mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
parent
465e1f5ee1
commit
059cf8fed1
@ -136,7 +136,7 @@ replicate_database(Node) ->
|
|||||||
mnesia:change_table_copy_type(schema, node(), disc_copies),
|
mnesia:change_table_copy_type(schema, node(), disc_copies),
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(Table) ->
|
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)
|
mnesia:add_table_copy(Table, node(), Type)
|
||||||
end, mnesia:system_info(tables)--[schema]).
|
end, mnesia:system_info(tables)--[schema]).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user