]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PG: choose acting set and newest_update_osd based on a map of all osds
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 18 May 2011 22:54:06 +0000 (15:54 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 19 May 2011 00:04:17 +0000 (17:04 -0700)
commitcad3dfaeaf00aeb8a0492bda023a0f9a81e897ba
tree967d2dff0a7d3b0fa826cccc190474b28b4c918d
parent524ab3a6f80f054a229ac2fdaa0077b8b020602f
PG: choose acting set and newest_update_osd based on a map of all osds

newest_update osd should be stable when the primary changes, to
prevent cycles of acting set choices. For the same reason, we should
not treat the primary as a special case in choose_acting.

Also remove the magic -1 from representing the current primary.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/osd/PG.cc