mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge latest 5.1 into performance version
This commit is contained in:
@ -1550,10 +1550,9 @@ void Query_cache::invalidate_locked_for_write(TABLE_LIST *tables_used)
|
||||
for (; tables_used; tables_used= tables_used->next_local)
|
||||
{
|
||||
thd_proc_info(thd, "invalidating query cache entries (table)");
|
||||
if (tables_used->lock_type & (TL_WRITE_LOW_PRIORITY | TL_WRITE) &&
|
||||
if (tables_used->lock_type >= TL_WRITE_ALLOW_WRITE &&
|
||||
tables_used->table)
|
||||
{
|
||||
THD *thd= current_thd;
|
||||
invalidate_table(thd, tables_used->table);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user