diff options
author | Dan Gudmundsson <[email protected]> | 2011-09-19 17:45:48 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2011-09-19 17:45:48 +0200 |
commit | 533aeba2211bc29bf2a207737d74ffa52a46bdec (patch) | |
tree | 0cbe8f0775dd3fdad0a0311039062205c70cb583 /lib/mnesia/src/mnesia_dumper.erl | |
parent | 7ebf84abf7e5d06ce9ef6ec11783318aa393093d (diff) | |
download | otp-533aeba2211bc29bf2a207737d74ffa52a46bdec.tar.gz otp-533aeba2211bc29bf2a207737d74ffa52a46bdec.tar.bz2 otp-533aeba2211bc29bf2a207737d74ffa52a46bdec.zip |
[mnesia] Use dedicated api for clearing tables
Mainly to correctly clear dets tables. It may also be faster to use
the dedicated functions.
Diffstat (limited to 'lib/mnesia/src/mnesia_dumper.erl')
-rw-r--r-- | lib/mnesia/src/mnesia_dumper.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_dumper.erl b/lib/mnesia/src/mnesia_dumper.erl index daa9e6aff2..f8d7664156 100644 --- a/lib/mnesia/src/mnesia_dumper.erl +++ b/lib/mnesia/src/mnesia_dumper.erl @@ -364,7 +364,7 @@ dets_insert(Op,Tab,Key,Val) -> ok = dets:delete_object(Tab, Val); clear_table -> dets_cleared(Tab), - ok = dets:match_delete(Tab, '_') + ok = dets:delete_all_objects(Tab) end. dets_updated(Tab,Key) -> |