1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
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:
unknown
2006-03-06 23:18:48 -06:00
parent 3388a7632f
commit 5c3a119d91

View File

@ -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));
}
/*