diff options
author | Rob Harrop <rob@rabbitmq.com> | 2011-03-11 11:29:54 +0000 |
---|---|---|
committer | Rob Harrop <rob@rabbitmq.com> | 2011-03-11 11:29:54 +0000 |
commit | 3ec780bc3ee6ab11be8dd920a9c1e2c495176e84 (patch) | |
tree | 3216ae519e2246f62fabaeabf9b40f7b3f9c73c1 /src/rabbit_exchange_type_topic.erl | |
parent | 0f7d856796c0414368f004a854fcfa87a29bbb6c (diff) | |
download | rabbitmq-server-3ec780bc3ee6ab11be8dd920a9c1e2c495176e84.tar.gz |
Take write lock when counting records, reduces the constant factor during delete
Diffstat (limited to 'src/rabbit_exchange_type_topic.erl')
-rw-r--r-- | src/rabbit_exchange_type_topic.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_exchange_type_topic.erl b/src/rabbit_exchange_type_topic.erl index ffd1e583..6dfa1930 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, read)). + length(mnesia:match_object(Table, Match, write)). trie_remove_all_edges(X) -> remove_all(rabbit_topic_trie_edge, |