aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia_log.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-09-21 12:17:13 +0200
committerDan Gudmundsson <[email protected]>2011-09-21 12:17:13 +0200
commita192733e4d2b4d74a1ce11bd75c9e59da8f41e0d (patch)
treea8d38b6ebe970252b2de2e83e2812f499b8f3e89 /lib/mnesia/src/mnesia_log.erl
parente58fa57a4936ad16e81ed05441fc5c85fabafb5d (diff)
parent7b6012a75f26219e5a8c803a0509d97d1b00c73a (diff)
downloadotp-a192733e4d2b4d74a1ce11bd75c9e59da8f41e0d.tar.gz
otp-a192733e4d2b4d74a1ce11bd75c9e59da8f41e0d.tar.bz2
otp-a192733e4d2b4d74a1ce11bd75c9e59da8f41e0d.zip
Merge branch 'dev' into major
Diffstat (limited to 'lib/mnesia/src/mnesia_log.erl')
-rw-r--r--lib/mnesia/src/mnesia_log.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mnesia/src/mnesia_log.erl b/lib/mnesia/src/mnesia_log.erl
index 9e804cc4c2..94153473cb 100644
--- a/lib/mnesia/src/mnesia_log.erl
+++ b/lib/mnesia/src/mnesia_log.erl
@@ -1021,7 +1021,8 @@ add_recs([LogH|Rest], N)
LogH#log_header.log_version >= "1.0" ->
add_recs(Rest, N);
add_recs([{{Tab, _Key}, _Val, clear_table} | Rest], N) ->
- true = ets:match_delete(Tab, '_'),
- add_recs(Rest, N+ets:info(Tab, size));
+ Size = ets:info(Tab, size),
+ true = ets:delete_all_objects(Tab),
+ add_recs(Rest, N+Size);
add_recs([], N) ->
N.