mariadb/storage/csv
Dave Gosselin dbd7017110 MDEV-36997 Assertion failed in ha_tina::delete_row on multi delete
Multi-delete code invokes ha_rnd_end after applying deferred deletes, following
the pattern as in multi-update.

The CSV engine batches deletes made via calls to delete_row, then applies them
all at once during ha_rnd_end.  For each row batched, the CSV engine decrements
an internal counter of the total rows in the table.  The multi-delete code was
not calling ha_rnd_end, so this internal counter was not consistent with the
total number of rows in the table, triggering the assertion.

In the CSV engine, explicitly delete the destination file before renaming the
source file over it.  This avoids a file rename problem on Windows.  This
change would have been necessary before the latest multi-delete changes, had
this test case existed at that point in time, because the end_read_record call
in do_table_deletes swallowed the rename failure on Windows.
2025-06-17 10:34:52 -04:00
..
CMakeLists.txt Update FSF Address 2019-05-11 21:29:06 +03:00
ha_tina.cc MDEV-36997 Assertion failed in ha_tina::delete_row on multi delete 2025-06-17 10:34:52 -04:00
ha_tina.h cleanup: key algorithm vs key flags 2024-11-05 14:00:47 -08:00
transparent_file.cc cleanup: remove unconditional #ifdef's 2024-11-05 14:00:47 -08:00
transparent_file.h perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00