summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-01-13 00:44:42 +0200
committerunknown <heikki@hundin.mysql.fi>2003-01-13 00:44:42 +0200
commiteaebef2ab64b65a275c6ddeb5864326d2e3b0571 (patch)
tree56e3c8ccf1015ec372d4c5b6e4a443753eb50aa7 /innobase
parent4c1037ea372180b6df85b57c588d9cce8fc99737 (diff)
downloadmariadb-git-eaebef2ab64b65a275c6ddeb5864326d2e3b0571.tar.gz
srv0srv.c:
Add another diagnostic print to determine why the 'queries inside InnoDB' counter might drift upwards innobase/srv/srv0srv.c: Add another diagnostic print to determine why the 'queries inside InnoDB' counter might drift upwards
Diffstat (limited to 'innobase')
-rw-r--r--innobase/srv/srv0srv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c
index f9eba721cbc..50ad90e60bd 100644
--- a/innobase/srv/srv0srv.c
+++ b/innobase/srv/srv0srv.c
@@ -1715,6 +1715,7 @@ srv_conc_enter_innodb(
ibool has_slept = FALSE;
srv_conc_slot_t* slot;
ulint i;
+ char err_buf[1000];
if (srv_thread_concurrency >= 500) {
/* Disable the concurrency check */
@@ -1733,6 +1734,16 @@ srv_conc_enter_innodb(
retry:
os_fast_mutex_lock(&srv_conc_mutex);
+ if (trx->declared_to_be_inside_innodb) {
+ ut_print_timestamp(stderr);
+
+ trx_print(err_buf, trx);
+
+ fprintf(stderr,
+" InnoDB: Error: trying to declare trx to enter InnoDB, but\n"
+"InnoDB: it already is declared.\n%s\n", err_buf);
+ }
+
if (srv_conc_n_threads < (lint)srv_thread_concurrency) {
srv_conc_n_threads++;