mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
ejabberdctl: Reorganize commands related to mnesia info
- ejabberdctl mnesia: already implemented in ejabberd_admin.erl - ejabberdctl mnesia info: renamed to mnesia_info_ctl - ejabberdctl mnesia Arg: command removed, use mnesia_info_ctl instead
This commit is contained in:
parent
ea40afbe03
commit
e9de3748bd
1 changed files with 1 additions and 12 deletions
|
@ -142,21 +142,10 @@ process(["status"], _Version) ->
|
||||||
%% TODO: Mnesia operations should not be hardcoded in ejabberd_ctl module.
|
%% TODO: Mnesia operations should not be hardcoded in ejabberd_ctl module.
|
||||||
%% For now, I leave them there to avoid breaking those commands for people that
|
%% For now, I leave them there to avoid breaking those commands for people that
|
||||||
%% may be using it (as format of response is going to change).
|
%% may be using it (as format of response is going to change).
|
||||||
process(["mnesia"], _Version) ->
|
process(["mnesia_info_ctl"], _Version) ->
|
||||||
print("~p~n", [mnesia:system_info(all)]),
|
|
||||||
?STATUS_SUCCESS;
|
|
||||||
|
|
||||||
process(["mnesia", "info"], _Version) ->
|
|
||||||
mnesia:info(),
|
mnesia:info(),
|
||||||
?STATUS_SUCCESS;
|
?STATUS_SUCCESS;
|
||||||
|
|
||||||
process(["mnesia", Arg], _Version) ->
|
|
||||||
case catch mnesia:system_info(list_to_atom(Arg)) of
|
|
||||||
{'EXIT', Error} -> print("Error: ~p~n", [Error]);
|
|
||||||
Return -> print("~p~n", [Return])
|
|
||||||
end,
|
|
||||||
?STATUS_SUCCESS;
|
|
||||||
|
|
||||||
process(["print_sql_schema", DBType, DBVersion, NewSchema], _Version) ->
|
process(["print_sql_schema", DBType, DBVersion, NewSchema], _Version) ->
|
||||||
ejabberd_sql_schema:print_schema(DBType, DBVersion, NewSchema);
|
ejabberd_sql_schema:print_schema(DBType, DBVersion, NewSchema);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue