mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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 byf93a2a3b3b
(2016) while originally break was ok sincecd483c5520
(2005).
This commit is contained in:
parent
4d5ae2b325
commit
7c61fb2fe2
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue