mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
processing trunsactional tables in query cache
mysql-test/r/innodb_cache.result: new test for query cache with transactions mysql-test/t/innodb_cache.test: new test for query cache with transactions sql/sql_cache.cc: processing trunsactional tables in query cache & removing strlen sql/sql_class.cc: processing trunsactional tables in query cache & added transaction-live memory sql/sql_class.h: processing trunsactional tables in query cache & added transaction-live memory sql/sql_parse.cc: processing trunsactional tables in query cache & added transaction-live memory sql/table.h: removing strlen operation from query cache
This commit is contained in:
@@ -324,7 +324,8 @@ int mysql_update(THD *thd,
|
||||
thd->lock=0;
|
||||
}
|
||||
if (updated)
|
||||
query_cache.invalidate(table_list);
|
||||
query_cache.invalidate(thd, table_list, 1);
|
||||
|
||||
delete select;
|
||||
if (error >= 0)
|
||||
send_error(&thd->net,thd->killed ? ER_SERVER_SHUTDOWN : 0); /* purecov: inspected */
|
||||
@@ -787,7 +788,8 @@ bool multi_update::send_eof()
|
||||
sprintf(buff,ER(ER_UPDATE_INFO), (long) found, (long) updated,
|
||||
(long) thd->cuted_fields);
|
||||
if (updated)
|
||||
query_cache.invalidate(update_tables);
|
||||
query_cache.invalidate(thd, update_tables, 1);
|
||||
|
||||
::send_ok(&thd->net,
|
||||
(thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated,
|
||||
thd->insert_id_used ? thd->insert_id() : 0L,buff);
|
||||
|
||||
Reference in New Issue
Block a user