mirror of https://github.com/sysown/proxysql
Fix lock order reversal in MySQL_Authentication, ClickHouse_Authentication, and PgSQL_Authentication. In memory_usage() and dump_all_users(), locks were acquired in order (frontends, backends) but released in the same order instead of the reverse. This creates a potential deadlock if another thread attempts to acquire the same locks in opposite order. Swap unlock calls to release backends before frontends, matching the reverse of the acquisition order.pull/5739/head
parent
65c522e635
commit
6cdd4e697e
Loading…
Reference in new issue