mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
PG,PGBackend: expose acting and backfill_targets
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
5a8c0bb952
commit
74b8a0c05c
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user