diff options
author | unknown <aelkin/elkin@koti.dsl.inet.fi> | 2007-10-03 15:12:53 +0300 |
---|---|---|
committer | unknown <aelkin/elkin@koti.dsl.inet.fi> | 2007-10-03 15:12:53 +0300 |
commit | 11045636df54d53159cba0dfdfe4ffae47586cdb (patch) | |
tree | 39fd4ce8e237b58996b7699f0152d99e514d363b | |
parent | 42cea00e036c1191b7c9251ac1e123df8273d86c (diff) | |
parent | 53139477729e4d090e1796eb261f235466630b98 (diff) | |
download | mariadb-git-11045636df54d53159cba0dfdfe4ffae47586cdb.tar.gz |
Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl
into koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug26000_show_slave_status_when_no_active_mi
-rw-r--r-- | sql/sql_parse.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 084bcfc3c76..f4ee2ffc0f7 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2844,7 +2844,16 @@ mysql_execute_command(THD *thd) if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL)) goto error; pthread_mutex_lock(&LOCK_active_mi); - res = show_master_info(thd,active_mi); + if (active_mi != NULL) + { + res = show_master_info(thd, active_mi); + } + else + { + push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, 0, + "the master info structure does not exist"); + send_ok(thd); + } pthread_mutex_unlock(&LOCK_active_mi); break; } |