]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: fix choose_acting revert to up case 1552/head
authorSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 20:10:06 +0000 (13:10 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 20:10:06 +0000 (13:10 -0700)
commitd78e67885529726368544ecbdc8b2060240a921b
treef92e423e6a9dbcb04c678da5fdd37684b1f79088
parent7a1990b66ec29f4f3e1659df813ef09831a17cfe
osd/PG: fix choose_acting revert to up case

If we decide to revert back to up, we need to

1- return false, so that we go into the NeedActingChange state, and
2- actually ask for that change.

It's too fugly to try to jump down to the existing queue_want_pg_temp
call 100+ lines down in this function, so just do it here.  We already
know that we are requesting to clear the pg_temp.

Fixes: #7902
Backport: emperor, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc