PG,PGBackend: expose acting and backfill_targets

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-01-27 16:52:20 -08:00
parent 5a8c0bb952
commit 74b8a0c05c
3 changed files with 10 additions and 1 deletions

View File

@ -336,7 +336,7 @@ public:
pg_shard_t pg_whoami;
pg_shard_t up_primary;
vector<int> up, acting, want_acting;
set<pg_shard_t> actingbackfill;
set<pg_shard_t> actingbackfill, actingset;
map<pg_shard_t,eversion_t> peer_last_complete_ondisk;
eversion_t min_last_complete_ondisk; // up: min over last_complete_ondisk, peer_last_complete_ondisk
eversion_t pg_trim_to;

View File

@ -110,6 +110,8 @@
virtual epoch_t get_epoch() const = 0;
virtual const set<pg_shard_t> &get_actingbackfill_shards() const = 0;
virtual const set<pg_shard_t> &get_acting_shards() const = 0;
virtual const set<pg_shard_t> &get_backfill_shards() const = 0;
virtual std::string gen_dbg_prefix() const = 0;

View File

@ -294,6 +294,13 @@ public:
const set<pg_shard_t> &get_actingbackfill_shards() const {
return actingbackfill;
}
const set<pg_shard_t> &get_acting_shards() const {
return actingset;
}
const set<pg_shard_t> &get_backfill_shards() const {
return backfill_targets;
}
std::string gen_dbg_prefix() const { return gen_prefix(); }
const map<hobject_t, set<pg_shard_t> > &get_missing_loc_shards() const {