]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG::find_best_info: fix log_tail component 1506/head
authorSamuel Just <sam.just@inktank.com>
Tue, 18 Mar 2014 19:09:05 +0000 (12:09 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 18 Mar 2014 19:09:09 +0000 (12:09 -0700)
commitb4420ffbf807e691a9f0f3eed69e1d505aa55ddd
treec27da8f9fa1fa734af428d43b200082cd449dd45
parentf8632699b1c4d48a8c495532462204291cab6737
PG::find_best_info: fix log_tail component

The previous logic should have kept the current best info if it found a
replica which best could log-recover, but p couldn't.  However, the
continue in that loop advanced the inner loop instead of the outer loop
allowing the primary case to take over in cases where best had a longer
tail.  Instead, we will prefer the longer tail regardless of the other
infos to simplify the logic.

Fixes: #7755
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc