summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Long <k.long@sun.com>2009-07-21 14:10:09 -0600
committerKelly Long <k.long@sun.com>2009-07-21 14:10:09 -0600
commit1a0c2153a036296785dcdfa7b5f4974515616e11 (patch)
tree37598d4effe8cfc31e83a8bf4c5aebafc677f336
parent26b1b214c0f204dc5eb2c9344fa0b16a31c14bf2 (diff)
downloadmariadb-git-1a0c2153a036296785dcdfa7b5f4974515616e11.tar.gz
Fix Bug#44671
Part of the 'show status' code was erronously removed when the google patch was applied. This patch puts it back.
-rw-r--r--storage/innobase/srv/srv0srv.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c
index 8e5838db519..36c3d450aae 100644
--- a/storage/innobase/srv/srv0srv.c
+++ b/storage/innobase/srv/srv0srv.c
@@ -1880,6 +1880,27 @@ srv_printf_innodb_monitor(
mutex_exit(&dict_foreign_err_mutex);
+ /* Print open transaction details */
+ lock_print_info_summary(file);
+
+ if (trx_start) {
+ long t = ftell(file);
+ if (t < 0) {
+ *trx_start = ULINT_UNDEFINED;
+ } else {
+ *trx_start = (ulint) t;
+ }
+ }
+ lock_print_info_all_transactions(file);
+ if (trx_end) {
+ long t = ftell(file);
+ if (t < 0) {
+ *trx_end = ULINT_UNDEFINED;
+ } else {
+ *trx_end = (ulint) t;
+ }
+ }
+
fputs("--------\n"
"FILE I/O\n"
"--------\n", file);