aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-10-27 11:06:38 +0200
committerDan Gudmundsson <[email protected]>2011-11-07 14:19:45 +0100
commit95a7cca40ae52f32b9eb4f0664857e804636ec2c (patch)
treeea1516e4dd9725aa5ebfa823564ca47dc9a73249 /lib/mnesia/src
parent567a8276de0b146bfcbf6e81626d11694ca8edf8 (diff)
downloadotp-95a7cca40ae52f32b9eb4f0664857e804636ec2c.tar.gz
otp-95a7cca40ae52f32b9eb4f0664857e804636ec2c.tar.bz2
otp-95a7cca40ae52f32b9eb4f0664857e804636ec2c.zip
[mnesia] Remove export of clear_table which is not a schema operation anymore
Diffstat (limited to 'lib/mnesia/src')
-rw-r--r--lib/mnesia/src/mnesia_schema.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mnesia/src/mnesia_schema.erl b/lib/mnesia/src/mnesia_schema.erl
index 05be474aea..5660ac8019 100644
--- a/lib/mnesia/src/mnesia_schema.erl
+++ b/lib/mnesia/src/mnesia_schema.erl
@@ -39,7 +39,7 @@
change_table_load_order/2,
change_table_majority/2,
change_table_frag/2,
- clear_table/1,
+%% clear_table/1, %% removed since it is not a schema op anymore
create_table/1,
cs2list/1,
del_snmp/1,
@@ -1152,10 +1152,6 @@ do_change_table_frag(Tab, _Change) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Clear a table
-%% No need for a schema transaction
-clear_table(Tab) ->
- schema_transaction(fun() -> do_clear_table(Tab) end).
-
do_clear_table(schema) ->
mnesia:abort({bad_type, schema});
do_clear_table(Tab) ->