• Sergey Vojtovich's avatar
    Removed duplicate thread cache check · 56b1cdde
    Sergey Vojtovich authored
    It may be beneficial for slow-path, where new thread is to be created.
    However it is harmful for fast-path, where thread cache can fulfil
    request: it caused 2 extra loads of write-contended variables.
    
    Also shrink variables scope.
    
    Part of MDEV-19515 - Improve connect speed
    56b1cdde
mysqld.cc 331 KB