• Vladislav Vaintroub's avatar
    MDEV-4113: Assertion (group->connection_count > 0) fails with Percona server in replication test. · 1701ee33
    Vladislav Vaintroub authored
    Assertion happens in replication thread during THD destruction, when thread calls my_sync(), which in turn calls  thd_wait_begin() callback. Connection count can be 0, because the counter was decremented before THD destructor. 
    This assertion currently reproducible only in Percona server  and not in MariaDB, due to differences in replication code.
    
    Fixed by moving  code to decrement connection counter after the THD destructor.
    1701ee33
threadpool_unix.cc 42.3 KB