]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmap: drop obsolete PG_ROLE_* constants
authorSage Weil <sage@newdream.net>
Wed, 25 Apr 2012 23:22:14 +0000 (16:22 -0700)
committerSage Weil <sage@newdream.net>
Fri, 27 Apr 2012 01:49:19 +0000 (18:49 -0700)
commit4cfbd81c1383121e0d4233f88a5a697d6e9e65e7
treeb646644ebb9ff1af01362232c8ccc7451ed3ef98
parent2a46564158ebf519ae6e7ee318b97c61cf032692
osdmap: drop obsolete PG_ROLE_* constants

There are cruft from the old primary/chain/splay replication code.  All
current code says <0 is stray, 0 is primary, and >0 is replica.  That is,
the role is the acting vector position, or -1 if not in the vector.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/osd/PG.h