summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_binding.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl
index e01ca060a9..f2bcd93b74 100644
--- a/src/rabbit_binding.erl
+++ b/src/rabbit_binding.erl
@@ -444,10 +444,7 @@ remove_for_destination(DstName, OnlyDurable, Fun) ->
lists:keysort(#binding.source, Bindings), OnlyDurable).
%% Instead of locking entire table on remove operations we can lock the
-%% affected resource only. This will allow us to use dirty_match_object for
-%% do faster search of records to delete.
-%% This works better when there are multiple resources deleted at once, for
-%% example when exclusive queues are deleted.
+%% affected resource only.
lock_resource(Name) ->
mnesia:lock({global, Name, mnesia:table_info(rabbit_route, where_to_write)},
write).