summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <gbichot@quadita2.mysql.com>2005-03-24 14:32:40 +0100
committerunknown <gbichot@quadita2.mysql.com>2005-03-24 14:32:40 +0100
commit23da6e5e3161b66286b19f423d8bb0dbae0572ed (patch)
tree1c70ef9270a90b0bd16be031467493ef431cad61 /sql/sql_show.cc
parentb350fefdcabc77c69fb060d088bcb8e259891788 (diff)
parent2621e38bf950879dd339d780d565f44df837c8c4 (diff)
downloadmariadb-git-23da6e5e3161b66286b19f423d8bb0dbae0572ed.tar.gz
merge from 4.1
BitKeeper/etc/logging_ok: auto-union libmysql/Makefile.shared: Auto merged mysql-test/r/rpl_deadlock.result: Auto merged mysql-test/t/rpl_deadlock.test: Auto merged sql/mysqld.cc: Auto merged sql/structs.h: Auto merged sql/slave.cc: merge sql/slave.h: merge sql/sql_show.cc: merge
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index fadc445e85d..9f7aaa70a09 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1331,6 +1331,19 @@ static bool show_status_array(THD *thd, const char *wild,
pthread_mutex_unlock(&LOCK_active_mi);
break;
}
+ case SHOW_SLAVE_RETRIED_TRANS:
+ {
+ /*
+ TODO: in 5.1 with multimaster, have one such counter per line in SHOW
+ SLAVE STATUS, and have the sum over all lines here.
+ */
+ pthread_mutex_lock(&LOCK_active_mi);
+ pthread_mutex_lock(&active_mi->rli.data_lock);
+ end= int10_to_str(active_mi->rli.retried_trans, buff, 10);
+ pthread_mutex_unlock(&active_mi->rli.data_lock);
+ pthread_mutex_unlock(&LOCK_active_mi);
+ break;
+ }
#endif /* HAVE_REPLICATION */
case SHOW_OPENTABLES:
end= int10_to_str((long) cached_tables(), buff, 10);