Commit 7ba678da authored by Yuchen Pei's avatar Yuchen Pei

MDEV-24813 [debug] Look for testcases calling cond_push

parent 9811d23b
...@@ -641,6 +641,7 @@ bool Sql_cmd_delete::delete_from_single_table(THD *thd) ...@@ -641,6 +641,7 @@ bool Sql_cmd_delete::delete_from_single_table(THD *thd)
(select->cond->used_tables() & ~RAND_TABLE_BIT) == table->map) (select->cond->used_tables() & ~RAND_TABLE_BIT) == table->map)
{ {
DBUG_ASSERT(!table->file->pushed_cond); DBUG_ASSERT(!table->file->pushed_cond);
abort();
if (!table->file->cond_push(select->cond)) if (!table->file->cond_push(select->cond))
{ {
use_direct_delete= TRUE; use_direct_delete= TRUE;
......
...@@ -14047,6 +14047,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond) ...@@ -14047,6 +14047,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
{ {
trace_cp.add("push_cond", push_cond); trace_cp.add("push_cond", push_cond);
/* Push condition to handler */ /* Push condition to handler */
abort();
if (!tab->table->file->cond_push(push_cond)) if (!tab->table->file->cond_push(push_cond))
tab->table->file->pushed_cond= push_cond; tab->table->file->pushed_cond= push_cond;
} }
...@@ -676,6 +676,7 @@ bool Sql_cmd_update::update_single_table(THD *thd) ...@@ -676,6 +676,7 @@ bool Sql_cmd_update::update_single_table(THD *thd)
(select->cond->used_tables() & ~RAND_TABLE_BIT) == table->map) (select->cond->used_tables() & ~RAND_TABLE_BIT) == table->map)
{ {
DBUG_ASSERT(!table->file->pushed_cond); DBUG_ASSERT(!table->file->pushed_cond);
abort();
if (!table->file->cond_push(select->cond)) if (!table->file->cond_push(select->cond))
{ {
use_direct_update= TRUE; use_direct_update= TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment