diff options
author | kroki/tomash@moonlight.home <> | 2007-03-09 13:17:46 +0300 |
---|---|---|
committer | kroki/tomash@moonlight.home <> | 2007-03-09 13:17:46 +0300 |
commit | 7bbea9675447cf74469d1552eac36181441e0160 (patch) | |
tree | 6197d95ef12f5c0b810b541f1b32c7955b0b1d7b /sql/sql_help.cc | |
parent | b641bd7b198f41f5e235b58dadff64552df73582 (diff) | |
parent | c19affef54e613ff47daf36986a937fd5192e4a1 (diff) | |
download | mariadb-git-7bbea9675447cf74469d1552eac36181441e0160.tar.gz |
Merge moonlight.home:/home/tomash/src/mysql_ab/mysql-5.1
into moonlight.home:/home/tomash/src/mysql_ab/mysql-5.1-bug9953
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc index b8a904b0c6e..414a6d20572 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -655,8 +655,9 @@ bool mysqld_help(THD *thd, const char *mask) tables[3].lock_type= TL_READ; tables[0].db= tables[1].db= tables[2].db= tables[3].db= (char*) "mysql"; - if (open_and_lock_tables(thd, tables)) - goto error; + Open_tables_state open_tables_state_backup; + if (open_system_tables_for_read(thd, tables, &open_tables_state_backup)) + goto error2; /* Init tables and fields to be usable from items @@ -781,8 +782,13 @@ bool mysqld_help(THD *thd, const char *mask) } send_eof(thd); + close_system_tables(thd, &open_tables_state_backup); DBUG_RETURN(FALSE); + error: + close_system_tables(thd, &open_tables_state_backup); + +error2: DBUG_RETURN(TRUE); } |