diff options
author | Guilhem Bichot <guilhem@mysql.com> | 2009-10-19 15:23:42 +0200 |
---|---|---|
committer | Guilhem Bichot <guilhem@mysql.com> | 2009-10-19 15:23:42 +0200 |
commit | 70fab22cabe0245cd560b8b2f9cf8b8746c30dca (patch) | |
tree | 8ee6faec77455b8c1e233c367ec3acad0a042026 /sql/sql_base.cc | |
parent | 3088f6c7ba361b1baa8de649d7ff32ed1f2293d4 (diff) | |
download | mariadb-git-70fab22cabe0245cd560b8b2f9cf8b8746c30dca.tar.gz |
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)
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index e5005f42b0d..770694dd472 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -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)++; /* |