Commit 5c3a119d authored by unknown's avatar unknown

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.
parent 3388a763
......@@ -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;
}
else
{
for (file= m_file; *file; file++)
if ((tmp= (*file)->extra(HA_EXTRA_PREPARE_FOR_DELETE)))
result= tmp;
result= tmp;
DBUG_RETURN(result);
}
DBUG_RETURN(result);
DBUG_RETURN(loop_extra(HA_EXTRA_PREPARE_FOR_DELETE));
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment