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

MDEV-15458 Segfault in heap_scan() upon UPDATE after ADD SYSTEM VERSIONING

handler::write_row() should not destroy the state of the running
index_search/index_next/... or rnd_init/rnd_next/... scan
This commit is contained in:
Sergei Golubchik
2019-05-13 14:22:49 +02:00
parent 73de06c48f
commit 43623f04a9
4 changed files with 3 additions and 11 deletions

View File

@ -254,12 +254,7 @@ int TABLE::delete_row()
store_record(this, record[1]);
vers_update_end();
int res;
if ((res= file->extra(HA_EXTRA_REMEMBER_POS)))
return res;
if ((res= file->ha_update_row(record[1], record[0])))
return res;
return file->extra(HA_EXTRA_RESTORE_POS);
return file->ha_update_row(record[1], record[0]);
}