1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-18921 Server crashes in bitmap_bits_set or bitmap_is_set upon UPDATE IGNORE .. FOR PORTION with binary logging

The fix is same as for MDEV-18859: initialize table->rpl_write_set in
FOR PORTION OF case.
This commit is contained in:
Nikita Malyavin
2019-03-14 14:45:01 +10:00
committed by Sergei Golubchik
parent 7e3e2d060b
commit 5fc6ad95d4
3 changed files with 17 additions and 0 deletions

View File

@ -567,9 +567,14 @@ int mysql_update(THD *thd,
goto err;
if (table_list->has_period())
{
table->use_all_columns();
table->rpl_write_set= table->write_set;
}
else
{
table->mark_columns_needed_for_update();
}
table->update_const_key_parts(conds);
order= simple_remove_const(order, conds);