mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
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. sql/sql_table.cc: Make sure we invalidate the table using TABLE_LIST, not TABLE, object.
This commit is contained in:
parent
8c4e389606
commit
dd135df6a8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue