1 package MogileFS
::RebalancePolicy
;
8 'devfid_magazine' => [], # devfids queued up for next
9 # called to 'devfid_to_rebalance'
13 # return DevFID (or undef) of a devid to migrate away
14 sub devfid_to_rebalance
{
16 my $mag = $self->{devfid_magazine
};
17 return shift @
$mag if @
$mag;
18 push @
$mag, $self->devfids_to_rebalance;
22 sub devfids_to_rebalance
{
26 # return MogileFS::Device objects which shouldn't
27 # be replicated towards, since it wouldn't help
29 sub dest_devs_to_avoid
{