1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-35848, MDEV-35568 Reintroduce delete_while_scanning for multi_delete

Reintroduces delete_while_scanning optimization for multi_delete.
Reverse some test changes from the initial feature devlopment now
that we delete-on-the-fly once again.
This commit is contained in:
Dave Gosselin
2025-01-29 15:21:03 -05:00
parent 8ec275da16
commit 5e07d1abd4
7 changed files with 337 additions and 70 deletions

View File

@ -7564,7 +7564,6 @@ class multi_delete :public select_result_interceptor
TABLE_LIST *delete_tables, *table_being_deleted;
TMP_TABLE_PARAM *tmp_table_param;
TABLE **tmp_tables, *main_table;
Unique **tempfiles;
ha_rows deleted, found;
uint table_count;
int error;
@ -7573,6 +7572,7 @@ class multi_delete :public select_result_interceptor
bool transactional_tables;
/* True if at least one table we delete from is not transactional */
bool normal_tables;
bool delete_while_scanning;
/*
error handling (rollback and binlogging) can happen in send_eof()
so that afterward abort_result_set() needs to find out that.