mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Log Mnesia table type on creation
This commit is contained in:
parent
533a4eec96
commit
56b4d3902a
1 changed files with 7 additions and 1 deletions
|
@ -258,7 +258,13 @@ validator() ->
|
|||
[unique]).
|
||||
|
||||
create(Name, TabDef) ->
|
||||
?INFO_MSG("Creating Mnesia table '~s'", [Name]),
|
||||
Type = lists:foldl(
|
||||
fun({ram_copies, _}, _) -> " ram ";
|
||||
({disc_copies, _}, _) -> " disc ";
|
||||
({disc_only_copies, _}, _) -> " disc_only ";
|
||||
(_, Acc) -> Acc
|
||||
end, " ", TabDef),
|
||||
?INFO_MSG("Creating Mnesia~stable '~s'", [Type, Name]),
|
||||
case mnesia_op(create_table, [Name, TabDef]) of
|
||||
{atomic, ok} ->
|
||||
add_table_copy(Name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue