• Igor Solodovnikov's avatar
    Bug #17514920 MYSQL_THREAD_INIT() CALL WITHOUT MYSQL_INIT() IS CRASHING IN WINDOWS · b264c3e1
    Igor Solodovnikov authored
    It is error to call mysql_thread_init() before libmysql is initialized with mysql_library_init(). Thus to fix this bug we need to detect if library was initialized and return error result if mysql_thread_init() is called with uninitialized library.
    
    Fixed by checking my_thread_global_init_done and returning nonzero if the library is not initialized.
    b264c3e1
my_thr_init.c 14.4 KB