mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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;
|
result= tmp;
|
||||||
for (file= m_reorged_file; *file; file++)
|
for (file= m_reorged_file; *file; file++)
|
||||||
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
|
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
|
||||||
result= tmp;
|
result= tmp;
|
||||||
|
DBUG_RETURN(result);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
DBUG_RETURN(loop_extra(HA_EXTRA_PREPARE_FOR_DELETE));
|
||||||
for (file= m_file; *file; file++)
|
|
||||||
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
|
|
||||||
result= tmp;
|
|
||||||
}
|
|
||||||
DBUG_RETURN(result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user