mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Back-port from 6.0 of the fix for
BUG#41759: "Valgrind warning: Invalid read of size 1 open_tables() with ps-protocol" (from revid:sergefp@mysql.com-20081227013233-f9n2by8romt37hyi)
This commit is contained in:
parent
b1f6a8e72f
commit
b1f765a98a
1 changed files with 2 additions and 3 deletions
|
@ -4516,9 +4516,6 @@ int open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
|
|||
*/
|
||||
for (tables= *start; tables ;tables= tables->next_global)
|
||||
{
|
||||
DBUG_PRINT("tcache", ("opening table: '%s'.'%s' item: 0x%lx",
|
||||
tables->db, tables->table_name, (long) tables));
|
||||
|
||||
safe_to_ignore_table= FALSE;
|
||||
|
||||
/*
|
||||
|
@ -4555,6 +4552,8 @@ int open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
|
|||
}
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
DBUG_PRINT("tcache", ("opening table: '%s'.'%s' item: 0x%lx",
|
||||
tables->db, tables->table_name, (long) tables));
|
||||
(*counter)++;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue