MDEV-27217 ha_partition::start_stmt() ignored error fix

ha_partition::start_stmt() continued processing in error state. Though
no known bug cases yet it seems break was made incorrect by
f93a2a3b3b (2016) while originally break was ok since cd483c5520
(2005).
This commit is contained in:
Aleksey Midenkov 2022-01-13 23:35:17 +03:00
parent 4d5ae2b325
commit 7c61fb2fe2

View file

@ -4082,11 +4082,10 @@ int ha_partition::start_stmt(THD *thd, thr_lock_type lock_type)
i= bitmap_get_next_set(&m_part_info->lock_partitions, i))
{
if (unlikely((error= m_file[i]->start_stmt(thd, lock_type))))
break;
DBUG_RETURN(error);
/* Add partition to be called in reset(). */
bitmap_set_bit(&m_partitions_to_reset, i);
}
// FIXME: check error?
switch (lock_type)
{
case TL_WRITE_ALLOW_WRITE: