]> granicus.if.org Git - ejabberd/commitdiff
Explicitly skip useless ejabberd 2.0* mnesia tables when restoring backup
authorBadlop <badlop@process-one.net>
Mon, 29 Aug 2011 10:36:49 +0000 (12:36 +0200)
committerBadlop <badlop@process-one.net>
Mon, 29 Aug 2011 10:36:49 +0000 (12:36 +0200)
Reference:
http://www.ejabberd.im/node/4867

src/ejabberd_admin.erl

index 148bdccb9067665dea280c223536526a17657c12..9ceaa183686b3c094a2d31533e2599a6be32741c 100644 (file)
@@ -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