summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-03-11 15:50:12 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-03-11 15:50:12 +0000
commit2eac13788895c688a19e27a30f26001cf489491a (patch)
tree48e0c8c3c4c4f4c5196ff51032b65caa8129a551
parent3ec780bc3ee6ab11be8dd920a9c1e2c495176e84 (diff)
downloadrabbitmq-server-bug23885.tar.gz
Backed out changeset 2ac4e46ab7c0bug23885
changing the lock kind may have undesirable effects in a concurrent setting. The efficiency gains don't justify taking that risk, at least not without further investigation.
-rw-r--r--src/rabbit_exchange_type_topic.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_exchange_type_topic.erl b/src/rabbit_exchange_type_topic.erl
index 6dfa1930..ffd1e583 100644
--- a/src/rabbit_exchange_type_topic.erl
+++ b/src/rabbit_exchange_type_topic.erl
@@ -247,7 +247,7 @@ trie_binding_count(X, Node) ->
_ = '_'}).
count(Table, Match) ->
- length(mnesia:match_object(Table, Match, write)).
+ length(mnesia:match_object(Table, Match, read)).
trie_remove_all_edges(X) ->
remove_all(rabbit_topic_trie_edge,