mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17251 SHOW STATUS unnecessary calls calc_sum_of_all_status
1. only call calc_sum_of_all_status() if a global SHOW_xxx_STATUS variable is to be returned 2. only lock LOCK_status when copying global_status_var, but not when iterating all threads
This commit is contained in:
@ -22,9 +22,10 @@
|
||||
that is defined in plugin.h
|
||||
*/
|
||||
#define SHOW_always_last SHOW_KEY_CACHE_LONG, \
|
||||
SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS, \
|
||||
SHOW_HAVE, SHOW_MY_BOOL, SHOW_HA_ROWS, SHOW_SYS, \
|
||||
SHOW_LONG_NOFLUSH, SHOW_LONGLONG_STATUS, SHOW_LEX_STRING
|
||||
SHOW_LONG_NOFLUSH, SHOW_LEX_STRING, \
|
||||
/* SHOW_*_STATUS must be at the end, SHOW_LONG_STATUS being first */ \
|
||||
SHOW_LONG_STATUS, SHOW_DOUBLE_STATUS, SHOW_LONGLONG_STATUS
|
||||
#include <my_global.h>
|
||||
#undef SHOW_always_last
|
||||
|
||||
|
Reference in New Issue
Block a user