]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
calc_acting: Prefer up[0] as primary if possible
authorSamuel Just <samuel.just@dreamhost.com>
Sat, 17 Dec 2011 02:04:32 +0000 (18:04 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 20 Dec 2011 00:23:48 +0000 (16:23 -0800)
commit1362d3e10dc6fc28063d7a0e01fd611f03f1d305
treebabbc9b30dafc9e95b04e43e2dbb449a3d283a7f
parentb5c3259012e827498810b97d17d71bc9eb824ae8
calc_acting: Prefer up[0] as primary if possible

Previously, we could get into a state where although up[0] has been
fully backfilled, acting[0] could be selected as a primary if it is able
to pull another peer into the acting set.  This also collects the logic
of choosing the best info into a helper function.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/PG.cc
src/osd/PG.h