summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-03-15 23:57:31 +0200
committerbell@sanja.is.com.ua <>2002-03-15 23:57:31 +0200
commit63b2a551bf10181b0727e9b3f1240e73e5b80158 (patch)
tree691610fcbd4313eb2d79af0b91394cb2b9410f21 /sql/sql_delete.cc
parent12f1cba0e761b8ea01ee125ce2addccc0ee171f6 (diff)
downloadmariadb-git-63b2a551bf10181b0727e9b3f1240e73e5b80158.tar.gz
processing trunsactional tables in query cache
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index a155abc522b..a0076c04020 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -182,7 +182,7 @@ cleanup:
thd->lock=0;
}
if (deleted)
- query_cache.invalidate(table_list);
+ query_cache.invalidate(thd, table_list, 1);
delete select;
if (error >= 0) // Fatal error
send_error(&thd->net,thd->killed ? ER_SERVER_SHUTDOWN: 0);
@@ -470,7 +470,7 @@ bool multi_delete::send_eof()
VOID(ha_autocommit_or_rollback(thd,error > 0));
}
if (deleted)
- query_cache.invalidate(delete_tables);
+ query_cache.invalidate(thd, delete_tables, 1);
::send_ok(&thd->net,deleted);
return 0;
}
@@ -548,7 +548,7 @@ int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
bzero((char*) &create_info,sizeof(create_info));
*fn_ext(path)=0; // Remove the .frm extension
error= ha_create_table(path,&create_info,1) ? -1 : 0;
- query_cache.invalidate(table_list);
+ query_cache.invalidate(thd, table_list, 0);
if (!dont_send_ok)
{