]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: clear need_up_thru in build_prior as appropriate
authorSage Weil <sage@newdream.net>
Mon, 19 Sep 2011 21:00:59 +0000 (14:00 -0700)
committerSage Weil <sage@newdream.net>
Mon, 19 Sep 2011 21:05:49 +0000 (14:05 -0700)
commit8c8e1d820b218f9ac2641a57af001a3c4c8f0824
treebdec30ba743383af1c8da22108f0f2ba7d43d556
parentb6f4de41f973697abf91134f71f60d4c3eaa0e3d
osd: clear need_up_thru in build_prior as appropriate

The only time need_up_thru is cleared is in the Peering state AdvMap
handler, but it doesn't get called if prior_set_affected() and we go
into build_prior().  Build_prior() sets need_up_thru if it's needed, but
it doesn't clear it if its not, which means the pg never goes active.

Reported-by: Sam Lang <samlang@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/PG.cc