mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Backport of:
---------------------------------------------------------- revno: 2617.69.25 committer: Konstantin Osipov <kostja@sun.com> branch nick: 5.4-42546 timestamp: Fri 2009-08-14 23:52:00 +0400 message: A cleanup in open_tables() and lock_tables(): change return type of these functions to bool from int, to follow convention in the rest of the code. (Part of WL#4284 review fixes).
This commit is contained in:
@ -193,7 +193,7 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
|
||||
TABLE_LIST *hash_tables = NULL;
|
||||
char *db, *name, *alias;
|
||||
uint dblen, namelen, aliaslen, counter;
|
||||
int error;
|
||||
bool error;
|
||||
TABLE *backup_open_tables;
|
||||
MDL_context backup_mdl_context;
|
||||
DBUG_ENTER("mysql_ha_open");
|
||||
@ -321,8 +321,8 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
|
||||
can close a single table only.
|
||||
*/
|
||||
close_thread_tables(thd);
|
||||
my_error(ER_ILLEGAL_HA, MYF(0), tables->alias);
|
||||
error= 1;
|
||||
my_error(ER_ILLEGAL_HA, MYF(0), hash_tables->alias);
|
||||
error= TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user