aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-08-17 08:59:48 +0200
committerDan Gudmundsson <[email protected]>2018-08-17 10:47:56 +0200
commita9ddb1e0f116e8fad9b13c7ba7884472c00c2667 (patch)
treed3938c458ce9e0c935a377913426571939f2deb6 /lib/mnesia/src
parent70aceaec7a985c27787f37ce07e4b072ec52ed61 (diff)
downloadotp-a9ddb1e0f116e8fad9b13c7ba7884472c00c2667.tar.gz
otp-a9ddb1e0f116e8fad9b13c7ba7884472c00c2667.tar.bz2
otp-a9ddb1e0f116e8fad9b13c7ba7884472c00c2667.zip
Clean up bag index tables
Index records for bag tables with ram_copies was not deleted after "real" objects where deleted and thus a memory leak.
Diffstat (limited to 'lib/mnesia/src')
-rw-r--r--lib/mnesia/src/mnesia_index.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_index.erl b/lib/mnesia/src/mnesia_index.erl
index d121bd01e9..f8b3b9cd02 100644
--- a/lib/mnesia/src/mnesia_index.erl
+++ b/lib/mnesia/src/mnesia_index.erl
@@ -155,7 +155,7 @@ del_object_bag_([IxK|IxKs], Found, Type, Tab, Key, Obj, Ixt) ->
bag ->
db_match_erase(Ixt, {IxK, Key});
ordered ->
- db_erase(Ixt, {{IxK, Key}})
+ db_erase(Ixt, {IxK, Key})
end;
_ ->
ok