Commit 5c3a119d authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -4821,16 +4821,12 @@ int ha_partition::prepare_for_delete()
    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;      
  }
    DBUG_RETURN(result);   
  }
  
  DBUG_RETURN(loop_extra(HA_EXTRA_PREPARE_FOR_DELETE));
}

/*
  Call extra on all partitions