1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Avoid table scans when using DELETE on a table on which no SELECT has been done.

Docs/manual.texi:
  Cleanups
This commit is contained in:
unknown
2001-03-02 15:05:12 +02:00
parent 30566fc0a7
commit f05438e156
2 changed files with 41 additions and 27 deletions

View File

@@ -156,6 +156,7 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
limit != HA_POS_ERROR ? TL_WRITE_LOW_PRIORITY :
lock_type)))
DBUG_RETURN(-1);
table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK);
thd->proc_info="init";
if (use_generate_table)
DBUG_RETURN(generate_table(thd,table_list,table));