From: Samuel Just Date: Tue, 28 Jan 2014 00:52:20 +0000 (-0800) Subject: PG,PGBackend: expose acting and backfill_targets X-Git-Tag: v0.78~163^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=74b8a0c05cb84432bca7cfeaa41d879107d86a42;p=ceph.git PG,PGBackend: expose acting and backfill_targets Signed-off-by: Samuel Just --- diff --git a/src/osd/PG.h b/src/osd/PG.h index c182a05fb7e4e..6746e010fa67b 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -336,7 +336,7 @@ public: pg_shard_t pg_whoami; pg_shard_t up_primary; vector up, acting, want_acting; - set actingbackfill; + set actingbackfill, actingset; map 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; diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h index 0968323da79e9..b39a54efe23f5 100644 --- a/src/osd/PGBackend.h +++ b/src/osd/PGBackend.h @@ -110,6 +110,8 @@ virtual epoch_t get_epoch() const = 0; virtual const set &get_actingbackfill_shards() const = 0; + virtual const set &get_acting_shards() const = 0; + virtual const set &get_backfill_shards() const = 0; virtual std::string gen_dbg_prefix() const = 0; diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 1acbf9ccbad29..f331ca97fccaa 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -294,6 +294,13 @@ public: const set &get_actingbackfill_shards() const { return actingbackfill; } + const set &get_acting_shards() const { + return actingset; + } + const set &get_backfill_shards() const { + return backfill_targets; + } + std::string gen_dbg_prefix() const { return gen_prefix(); } const map > &get_missing_loc_shards() const {