summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2005-10-06 10:54:07 +0200
committertomas@poseidon.ndb.mysql.com <>2005-10-06 10:54:07 +0200
commit620b7bafb0182949463e706fc91c0144328d0d34 (patch)
treecbe58ba165511396b212afaa1654a226d8ae88a4 /sql/sql_cache.cc
parent418808ba9ab51a5e0dec3ed7f00b1a8e1689ebca (diff)
parent3af12c477662114f4e118bba6806af65f64b9793 (diff)
downloadmariadb-git-620b7bafb0182949463e706fc91c0144328d0d34.tar.gz
Merge
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 1ca9db44cc7..f17825e6d2c 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1299,7 +1299,8 @@ void Query_cache::invalidate_locked_for_write(TABLE_LIST *tables_used)
DUMP(this);
for (; tables_used; tables_used= tables_used->next_local)
{
- if (tables_used->lock_type & (TL_WRITE_LOW_PRIORITY | TL_WRITE))
+ if (tables_used->lock_type & (TL_WRITE_LOW_PRIORITY | TL_WRITE) &&
+ tables_used->table)
invalidate_table(tables_used->table);
}
}