summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-04-29 00:33:52 +0300
committerunknown <bell@sanja.is.com.ua>2002-04-29 00:33:52 +0300
commit3c0e609165197d03d067fed2157673ae42652f26 (patch)
treef74bb7c0172682417236403294a4f2b39e49af7f /sql/sql_parse.cc
parenta2ce6c71b836c627e71fe37f0aa312b11e59f571 (diff)
downloadmariadb-git-3c0e609165197d03d067fed2157673ae42652f26.tar.gz
invalidation moved before tables unlocking
sql/sql_delete.cc: invalidation moved before tables unlocking invalidation on multidelete error (if something changed) sql/sql_parse.cc: invalidation moved to mysql_admin_table layout fixing sql/sql_table.cc: invalidation moved to mysql_admin_table sql/sql_update.cc: invalidation moved before tables unlocking invalidation on multiupdate error (if something changed)
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index dc89888a1a5..055a99320de 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1669,7 +1669,6 @@ mysql_execute_command(void)
check_table_access(thd,SELECT_ACL | INSERT_ACL, tables))
goto error; /* purecov: inspected */
res = mysql_repair_table(thd, tables, &lex->check_opt);
- query_cache_invalidate3(thd, tables, 0);
break;
}
case SQLCOM_CHECK:
@@ -1678,7 +1677,6 @@ mysql_execute_command(void)
check_table_access(thd, SELECT_ACL | EXTRA_ACL , tables))
goto error; /* purecov: inspected */
res = mysql_check_table(thd, tables, &lex->check_opt);
- query_cache_invalidate3(thd, tables, 0);
break;
}
case SQLCOM_ANALYZE:
@@ -1941,8 +1939,9 @@ mysql_execute_command(void)
/* Fix tables-to-be-deleted-from list to point at opened tables */
for (auxi=(TABLE_LIST*) aux_tables ; auxi ; auxi=auxi->next)
auxi->table= ((TABLE_LIST*) auxi->table)->table;
- if (!thd->fatal_error && (result=new multi_delete(thd,aux_tables,
- lex->lock_option,table_count)))
+ if (!thd->fatal_error && (result= new multi_delete(thd,aux_tables,
+ lex->lock_option,
+ table_count)))
{
res=mysql_select(thd,tables,select_lex->item_list,
select_lex->where,