Explicitly skip useless ejabberd 2.0* mnesia tables when restoring backup
Reference: http://www.ejabberd.im/node/4867
This commit is contained in:
parent
8ddbf1c1c5
commit
dbe71153dc
|
@ -446,8 +446,12 @@ restore_mnesia(Path) ->
|
||||||
%% mod_configure/adhoc
|
%% mod_configure/adhoc
|
||||||
restore(Path) ->
|
restore(Path) ->
|
||||||
mnesia:restore(Path, [{keep_tables,keep_tables()},
|
mnesia:restore(Path, [{keep_tables,keep_tables()},
|
||||||
|
{skip_tables, skip_tables()},
|
||||||
{default_op, 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
|
%% This function return a list of tables that should be kept from a previous
|
||||||
%% version backup.
|
%% version backup.
|
||||||
%% Obsolete tables or tables created by module who are no longer used are not
|
%% Obsolete tables or tables created by module who are no longer used are not
|
||||||
|
|
Loading…
Reference in New Issue