• Vladislav Vaintroub's avatar
    Fix crash (race condition) in DBUG in connect2 test case. · 6c5cfbbf
    Vladislav Vaintroub authored
    When "simulate_failed_connection_1"  DBUG keyword is set, current thread's
    DBUG stack points to global variable in dbug (init_settings).
    This global variable could be overriden while current THD is still active,
    producing crash in worst scenario.
    
    Added DBUG_SET()so that the current thread own dbug
    context that cannot concurrently modified by anyone else.
    6c5cfbbf
sql_connect.cc 43.3 KB