]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PG: clear want_acting when we leave Primary
authorSamuel Just <sam.just@inktank.com>
Thu, 25 Apr 2013 21:08:57 +0000 (14:08 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 25 Apr 2013 23:24:41 +0000 (16:24 -0700)
commita5cade1fe7338602fb2bbfa867433d825f337c87
tree381b89d0a8d57b8738f2014071999b2710a25231
parent3ce35a6743e050bf0de5abd5ad32f522c5664f3d
PG: clear want_acting when we leave Primary

This is somewhat annoying actually.  Intuitively we want to
clear_primary_state when we leave primary, but when we restart
peering due to a change in prior set status, we can't afford
to forget most of our peering state.  want_acting, on the
other hand, should never persist across peering attempts.
In fact, in the future, want_acting should be pulled into
the Primary state structure.

Fixes: #3904
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
src/osd/PG.cc