mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
Avoid relatively expensive THD::store_globals() for every query in the threadpool. Use a lighter version instead, that only resets some thread local storage variables(THD, mysys, PSI), avoids some calculationms and caches syscall gettid (Linux only) in a thread_local variable. Also simplify Worker_context use, with RAII.
14 KiB
14 KiB