]> granicus.if.org Git - ejabberd/commitdiff
Fix typo
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 18 Jan 2017 16:11:08 +0000 (17:11 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 18 Jan 2017 16:11:08 +0000 (17:11 +0100)
src/ejabberd_mnesia.erl

index dd22294257bd41d711dcc8b6d7fa4c2b8c55d90f..db31e277a75b883ee425e0bad9478bd429789ca0 100644 (file)
@@ -44,7 +44,7 @@ create(Module, Name, TabDef)
     {attributes, Attrs} = lists:keyfind(attributes, 1, Schema),
     case catch mnesia:table_info(Name, attributes) of
        {'EXIT', _} ->
-           mnesia_op(create, [Name, TabDef]);
+           mnesia_op(create_table, [Name, TabDef]);
        Attrs ->
            case need_reset(Name, Schema) of
                true -> reset(Name, Schema);
@@ -61,7 +61,7 @@ create(Module, Name, TabDef)
 reset(Name, TabDef)
   when is_atom(Name), is_list(TabDef) ->
     mnesia_op(delete_table, [Name]),
-    mnesia_op(create, [Name, TabDef]).
+    mnesia_op(create_table, [Name, TabDef]).
 
 update(Name, TabDef)
   when is_atom(Name), is_list(TabDef) ->