mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
valgrind error fix
This commit is contained in:
@ -1938,7 +1938,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count)
|
||||
return -1;
|
||||
for (table= tables; table; table= table->next_global)
|
||||
{
|
||||
if (!table->placeholder())
|
||||
if (!table->placeholder() && !table->schema_table)
|
||||
*(ptr++)= table->table;
|
||||
}
|
||||
if (!(thd->lock=mysql_lock_tables(thd,start, (uint) (ptr - start))))
|
||||
|
Reference in New Issue
Block a user