diff options
author | kostja@bodhi.local <> | 2007-03-20 00:42:11 +0300 |
---|---|---|
committer | kostja@bodhi.local <> | 2007-03-20 00:42:11 +0300 |
commit | bdb10baec172fa2443f94b0f613a2c9d5e843017 (patch) | |
tree | 430ad1efea83b67994a7f31aab1a92c249366fb6 /sql/sql_help.cc | |
parent | e9fb4a686ff2d464e33902624d8425d379ef5016 (diff) | |
parent | 1812656d90f7d6d3db961500779c7ee8b8bea780 (diff) | |
download | mariadb-git-bdb10baec172fa2443f94b0f613a2c9d5e843017.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-runtime
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 b677111c019..79d658c2a85 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -654,8 +654,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 @@ -780,8 +781,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); } |