summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-05-11 12:30:26 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-05-11 12:30:26 +0200
commit0f618a42ea03e93c2a42b272aabdcda275b10a09 (patch)
tree474eec7afe9714d06427084ce66481e04842887f
parente3095b63fbfed7efef65f3fa73b897d5ba041d64 (diff)
downloadrabbitmq-server-git-0f618a42ea03e93c2a42b272aabdcda275b10a09.tar.gz
rabbit_connection_tracking: Disable `race_conditions` check for register_connection/1
There is a race condition reported by Dialyzer because do a read/write outside of a Mnesia transaction. Historically there was a transaction, but it was removed in commit e5df4e6ee105900087744ed40e58b8041738b9cd.
-rw-r--r--src/rabbit_connection_tracking.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_connection_tracking.erl b/src/rabbit_connection_tracking.erl
index 043d49458a..961abb37ea 100644
--- a/src/rabbit_connection_tracking.erl
+++ b/src/rabbit_connection_tracking.erl
@@ -261,6 +261,7 @@ tracked_connection_per_vhost_table_name_for(Node) ->
-spec register_connection(rabbit_types:tracked_connection()) -> ok.
+-dialyzer([{nowarn_function, [register_connection/1]}, race_conditions]).
register_connection(#tracked_connection{vhost = VHost, id = ConnId, node = Node} = Conn) when Node =:= node() ->
TableName = tracked_connection_table_name_for(Node),