diff options
author | unknown <bell@sanja.is.com.ua> | 2002-03-15 23:57:31 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-03-15 23:57:31 +0200 |
commit | 0510e98e11666728d21ae29621adbe134454dc71 (patch) | |
tree | 691610fcbd4313eb2d79af0b91394cb2b9410f21 /sql/sql_insert.cc | |
parent | 75a268a65be94b15b1651b2dab1c969d24238f48 (diff) | |
download | mariadb-git-0510e98e11666728d21ae29621adbe134454dc71.tar.gz |
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
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 0898ad4bffb..13c2564a2a6 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -311,7 +311,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields, } thd->proc_info="end"; if (info.copied || info.deleted) - query_cache.invalidate(table_list); + query_cache.invalidate(thd, table_list, 1); table->time_stamp=save_time_stamp; // Restore auto timestamp ptr table->next_number_field=0; thd->count_cuted_fields=0; @@ -1217,7 +1217,7 @@ bool delayed_insert::handle_inserts(void) sql_print_error("%s",thd.net.last_error); goto err; } - query_cache.invalidate(table); + query_cache.invalidate(&thd, table, 1); if (thr_reschedule_write_lock(*thd.lock->locks)) { /* This should never happen */ @@ -1242,7 +1242,7 @@ bool delayed_insert::handle_inserts(void) sql_print_error("%s",thd.net.last_error); goto err; } - query_cache.invalidate(table); + query_cache.invalidate(&thd, table, 1); pthread_mutex_lock(&mutex); DBUG_RETURN(0); @@ -1330,7 +1330,7 @@ void select_insert::send_error(uint errcode,const char *err) table->file->activate_all_index(thd); ha_rollback_stmt(thd); if (info.copied || info.deleted) - query_cache.invalidate(table); + query_cache.invalidate(thd, table, 1); } @@ -1343,7 +1343,7 @@ bool select_insert::send_eof() if ((error2=ha_autocommit_or_rollback(thd,error)) && ! error) error=error2; if (info.copied || info.deleted) - query_cache.invalidate(table); + query_cache.invalidate(thd, table, 1); if (error) { |