decrement thead_count *after* THD is destroyed
because thread_count means just that: number of THDs and shutdown code looks at it to know when to free shared data structures that THD uses. This fixes random crashes in ~THD on shutdown
Showing
Please register or sign in to comment