1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-09 11:41:36 +03:00
Files
mariadb/sql/sql_connect.cc
Dave Gosselin ca168a7a9a MDEV-23283 User Statistics does not correctly reflect concurrent_connections
Keep concurrent_connections updated when user stats are enabled.  When a user
connects, the count in concurrent_connections increases by one; when they
disconnect, it decreases by one.

Setting the global userstat begins counting new concurrent sessions from that
point forward; pre-existing concurrent sessions are not counted until they are
restarted.  Ideally this configuration is set in the my.cnf file so as to
apply from server startup, ensuring that the counter is consistent.  If it
is set during the server's lifetime (via SET GLOBAL userstat=1) it is
recommended to do so before concurrent user sessions exist for accurate
counts.
2025-09-10 13:57:07 -04:00

49 KiB