diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-09-24 21:56:42 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-09-24 21:56:42 +0400 |
commit | 203bbfe5693a95e01c84d1e4b788b76645df2d11 (patch) | |
tree | a51f4ba0033e3b4a5de34fec2d931953b9d74e0d /sql/my_apc.cc | |
parent | d9045bce1ddf1f017f0e127606c809271c953ef0 (diff) | |
download | mariadb-git-203bbfe5693a95e01c84d1e4b788b76645df2d11.tar.gz |
MWL#182: Explain running statements
- Implement new approach to testing (the DBUG_EXECUTE_IF variant)
- add an 'evalp' mysqltest command that is like 'eval' except that
it prints the original query.
- Fix select_describe() not to change join_tab[i]->type
- More tests
Diffstat (limited to 'sql/my_apc.cc')
-rw-r--r-- | sql/my_apc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/my_apc.cc b/sql/my_apc.cc index 754b7880c42..91559483b1f 100644 --- a/sql/my_apc.cc +++ b/sql/my_apc.cc @@ -29,6 +29,10 @@ void Apc_target::init() // todo: should use my_pthread_... functions instead? DBUG_ASSERT(!enabled); (void)pthread_mutex_init(&LOCK_apc_queue, MY_MUTEX_INIT_SLOW); + +#ifndef DBUG_OFF + n_calls_processed= 0; +#endif } @@ -217,6 +221,10 @@ void Apc_target::process_apc_requests() request->func(request->func_arg); request->what="func called by process_apc_requests"; +#ifndef DBUG_OFF + n_calls_processed++; +#endif + pthread_cond_signal(&request->COND_request); pthread_mutex_unlock(&request->LOCK_request); |