~guilhem-fr/mogilefs/MogileFS-Network

Viewing all changes in revision 26.

  • Committer: dormando
  • Date: 2012-02-27 10:50:13 UTC
  • Revision ID: git-v1:0567ffbdf8045b75d0b1db0a8c6b14b6e4ac21ed
sort devices after prioritizing zones

calling into sort_devs_by_freespace was cutting the list to the "20 devices
with most freespace" before checking the zone at all, which caused new files
to upload into the wrong zones for multi-DC setups with many uneven devices.

now we simply call the sorter later. it's a little less efficient.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: