• unknown's avatar
    Define USE_TLS when compiling libmysql.dll, to avoid crashing when · e29144b4
    unknown authored
    loaded at runtime.
    
    
    extra/comp_err.c:
      Don't use DBUG after my_end, crashes on Windows with USE_TLS.
    include/my_dbug.h:
      Add missing DBUG_LEAVE in non-debug builds.
    include/my_pthread.h:
      Add comment explaining USE_TLS.
    libmysql/cmakelists.txt:
      Add USE_TLS to avoid crashing when loading libmysql.dll at runtime.
    mysys/cmakelists.txt:
      Add USE_TLS to avoid crashing when loading libmysql.dll at runtime.
    mysys/my_init.c:
      Don't use DBUG after my_thread_end(), as it crashes on Windows TLS.
    e29144b4
comp_err.c 25.8 KB