summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_connection_tracking.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rabbit_connection_tracking.erl b/src/rabbit_connection_tracking.erl
index 2d23e7c888..fe5392a8a0 100644
--- a/src/rabbit_connection_tracking.erl
+++ b/src/rabbit_connection_tracking.erl
@@ -78,13 +78,11 @@ ensure_per_vhost_tracked_connections_table_for_this_node() ->
ensure_tracked_connections_table_for_node(Node) ->
TableName = tracked_connection_table_name_for(Node),
case mnesia:create_table(TableName, [{record_name, tracked_connection},
- {attributes, [id, node, vhost, name,
- pid, protocol,
- peer_host, peer_port,
- username, connected_at]}]) of
- {atomic, ok} -> ok;
- {aborted, _} -> ok
- %% TODO: propagate errors
+ {attributes, record_info(fields, tracked_connection)}]) of
+ {atomic, ok} -> ok;
+ {aborted, Error} ->
+ rabbit_log:error("Failed to create a tracked connection table for node ~p: ~p", [Node, Error]),
+ ok
end.