mirror of https://github.com/sysown/proxysql
Add static initialization PTHREAD_RWLOCK_INITIALIZER to filters_rwlock in debug.cpp to prevent race condition where proxy_debug() is called before init_debug_struct() initializes the rwlock. This fixes Valgrind errors in filter_debug_entry() where threads were accessing an uninitialized rwlock.v3.0-test0213
parent
3c85c593cf
commit
941e6b7320
Loading…
Reference in new issue