aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-08-29 12:36:49 +0200
committerBadlop <badlop@process-one.net>2011-08-29 12:36:49 +0200
commit917d1be994f6af33b6d078d29f9c6e1415cf8c75 (patch)
tree601f61c026366d4779769522f5e1825d0018d2fb /src
parenttypo fix (thanks to Artem Sh)(EJAB-1424) (diff)
Explicitly skip useless ejabberd 2.0* mnesia tables when restoring backup
Reference: http://www.ejabberd.im/node/4867
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_admin.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl
index 148bdccb9..9ceaa1836 100644
--- a/src/ejabberd_admin.erl
+++ b/src/ejabberd_admin.erl
@@ -427,8 +427,12 @@ restore_mnesia(Path) ->
%% mod_configure/adhoc
restore(Path) ->
mnesia:restore(Path, [{keep_tables,keep_tables()},
+ {skip_tables, skip_tables()},
{default_op, skip_tables}]).
+skip_tables() ->
+ [disco_publish,user_caps,user_caps_resources].
+
%% This function return a list of tables that should be kept from a previous
%% version backup.
%% Obsolete tables or tables created by module who are no longer used are not