diff options
Diffstat (limited to 'storage/innobase/lock/lock0wait.cc')
-rw-r--r-- | storage/innobase/lock/lock0wait.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/lock/lock0wait.cc b/storage/innobase/lock/lock0wait.cc index 4a3adaa4757..8869290901c 100644 --- a/storage/innobase/lock/lock0wait.cc +++ b/storage/innobase/lock/lock0wait.cc @@ -26,7 +26,7 @@ Created 25/5/2010 Sunny Bains #define LOCK_MODULE_IMPLEMENTATION -#include "ha_prototypes.h" +#include "univ.i" #include <mysql/service_thd_wait.h> #include <mysql/service_wsrep.h> @@ -285,7 +285,7 @@ lock_wait_suspend_thread( if (thr->lock_state == QUE_THR_LOCK_ROW) { srv_stats.n_lock_wait_count.inc(); - srv_stats.n_lock_wait_current_count.inc(); + srv_stats.n_lock_wait_current_count++; if (ut_usectime(&sec, &ms) == -1) { start_time = -1; @@ -398,7 +398,7 @@ lock_wait_suspend_thread( thd_storage_lock_wait(trx->mysql_thd, diff_time); } - srv_stats.n_lock_wait_current_count.dec(); + srv_stats.n_lock_wait_current_count--; DBUG_EXECUTE_IF("lock_instrument_slow_query_log", os_thread_sleep(1000);); |