summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index a5f81a9e89e..6a58b4e8029 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -279,7 +279,6 @@ int mysql_update(THD *thd,
Update_plan query_plan(thd->mem_root);
query_plan.index= MAX_KEY;
query_plan.using_filesort= FALSE;
- bool apc_target_enabled= false; // means was enabled *by code this function*
DBUG_ENTER("mysql_update");
if (open_tables(thd, &table_list, &table_count, 0))
@@ -518,8 +517,6 @@ int mysql_update(THD *thd,
goto exit_without_my_ok;
query_plan.save_explain_data(thd->lex->explain);
- thd->apc_target.enable();
- apc_target_enabled= true;
DBUG_EXECUTE_IF("show_explain_probe_update_exec_start",
dbug_serve_apcs(thd, 1););
@@ -960,8 +957,6 @@ int mysql_update(THD *thd,
if (!transactional_table && updated > 0)
thd->transaction.stmt.modified_non_trans_table= TRUE;
- thd->apc_target.disable();
- apc_target_enabled= false;
end_read_record(&info);
delete select;
thd_proc_info(thd, "end");
@@ -1035,8 +1030,6 @@ int mysql_update(THD *thd,
DBUG_RETURN((error >= 0 || thd->is_error()) ? 1 : 0);
err:
- if (apc_target_enabled)
- thd->apc_target.disable();
delete select;
free_underlaid_joins(thd, select_lex);
@@ -1045,7 +1038,6 @@ err:
DBUG_RETURN(1);
exit_without_my_ok:
- DBUG_ASSERT(!apc_target_enabled);
query_plan.save_explain_data(thd->lex->explain);
int err2= thd->lex->explain->send_explain(thd);