mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug #17720
Minor cleanup from Mikael's review sql/ha_partition.cc: minor cleanup of code, returning inside the first if clause and then calling loop_extra if the if clause is not executed.
This commit is contained in:
@ -4820,15 +4820,11 @@ int ha_partition::prepare_for_delete()
|
||||
result= tmp;
|
||||
for (file= m_reorged_file; *file; file++)
|
||||
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
|
||||
result= tmp;
|
||||
result= tmp;
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (file= m_file; *file; file++)
|
||||
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
|
||||
result= tmp;
|
||||
}
|
||||
DBUG_RETURN(result);
|
||||
|
||||
DBUG_RETURN(loop_extra(HA_EXTRA_PREPARE_FOR_DELETE));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user