diff options
author | Monty <monty@mariadb.org> | 2015-02-01 15:24:22 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-02-01 15:24:22 +0200 |
commit | 0ee879ff8ac1b80cd9a963015344f5698a81f309 (patch) | |
tree | c787536b279abd6fce40f8f624af2593ddf83403 /sql/wsrep_thd.cc | |
parent | 67b24a2374fed4a7533d14cc443afa0f4e9febc7 (diff) | |
download | mariadb-git-0ee879ff8ac1b80cd9a963015344f5698a81f309.tar.gz |
Improve performance for calculating memory allocation
Extend interface for 'show variables' with current scope
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r-- | sql/wsrep_thd.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc index b65eead817d..2b4980ae05f 100644 --- a/sql/wsrep_thd.cc +++ b/sql/wsrep_thd.cc @@ -38,12 +38,13 @@ static volatile int32 wsrep_bf_aborts_counter(0); #define WSREP_ATOMIC_ADD_LONG my_atomic_add32 #endif -int wsrep_show_bf_aborts (THD *thd, SHOW_VAR *var, char *buff) +int wsrep_show_bf_aborts (THD *thd, SHOW_VAR *var, char *buff, + enum enum_var_type scope) { - wsrep_local_bf_aborts = WSREP_ATOMIC_LOAD_LONG(&wsrep_bf_aborts_counter); - var->type = SHOW_LONGLONG; - var->value = (char*)&wsrep_local_bf_aborts; - return 0; + wsrep_local_bf_aborts = WSREP_ATOMIC_LOAD_LONG(&wsrep_bf_aborts_counter); + var->type = SHOW_LONGLONG; + var->value = (char*)&wsrep_local_bf_aborts; + return 0; } /* must have (&thd->LOCK_wsrep_thd) */ |