diff options
author | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2010-11-18 12:37:49 -0800 |
---|---|---|
committer | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2010-11-18 12:50:23 -0800 |
commit | 43e0b2670b24186c055ace94b1743a2017073a7c (patch) | |
tree | f9b9e840e2c7b4d75c870050730f33557cc283e7 /src/multi-dump.sh | |
parent | ea5d1d6693eff3bc8e88ee9e74fc516d880af73c (diff) | |
download | ceph-43e0b2670b24186c055ace94b1743a2017073a7c.tar.gz |
ReplicatedPG: call finish_recovery when needed
Don't loop in ReplicatedPG::start_recovery_ops. There is already a loop
in both recover_replicas and recover_primary that will try to do as many
recovery ops as it can, there's no need to repeat it. Also, the former
loop provably would never execute more than once because of the way
the code was structured.
If there are no more recovery operations to do, and PG::is_all_uptodate
is true at the end of ReplicatedPG::start_recovery_ops, call
finish_recovery.
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
Diffstat (limited to 'src/multi-dump.sh')
0 files changed, 0 insertions, 0 deletions