summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-07-29 12:35:12 +0400
committerKonstantin Osipov <kostja@sun.com>2010-07-29 12:35:12 +0400
commit3d1af939c30355fb835010be2a8a4de620b2b9a9 (patch)
treece754c8bb3b36b518ae8cba1e308404687cf9c99 /sql/sql_table.cc
parent0b217d901536c97ee9b7faf47999930bcc4b48dd (diff)
downloadmariadb-git-3d1af939c30355fb835010be2a8a4de620b2b9a9.tar.gz
Fix a Windows failure of main.merge test introduced by
the precursor patch for Bug#52044. When passing the TABLE instance for invalidation to the query cache, we didn't always have a valid share (in case of error). Make sure we invalidate the table using TABLE_LIST, not TABLE, object.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index c4b4a37b35a..0447e1a24af 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -5144,7 +5144,8 @@ send_result_message:
May be something modified. Consequently, we have to
invalidate the query cache.
*/
- query_cache_invalidate3(thd, table->table, 0);
+ table->table= 0; // For query cache
+ query_cache_invalidate3(thd, table, 0);
}
}
/* Error path, a admin command failed. */
@@ -5152,7 +5153,6 @@ send_result_message:
trans_commit_implicit(thd);
close_thread_tables(thd);
thd->mdl_context.release_transactional_locks();
- table->table=0; // For query cache
/*
If it is CHECK TABLE v1, v2, v3, and v1, v2, v3 are views, we will run