Skip to content

Commit cf3c413

Browse files
committed
osd: Add interface for new EC to determine the acting recovery backfill shard id set.
This is used to optimise the set of shards that will be written to by EC writes. Signed-off-by: Alex Ainscow <[email protected]>
1 parent ae28c14 commit cf3c413

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/osd/ECListener.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ struct ECListener {
148148
// RMWPipeline
149149
virtual const pg_pool_t &get_pool() const = 0;
150150
virtual const std::set<pg_shard_t> &get_acting_recovery_backfill_shards() const = 0;
151+
virtual const shard_id_set &get_acting_recovery_backfill_shard_id_set() const = 0;
151152
// XXX
152153
virtual bool should_send_op(
153154
pg_shard_t peer,

src/osd/PrimaryLogPG.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ class PrimaryLogPG : public PG,
392392
const std::set<pg_shard_t> &get_acting_recovery_backfill_shards() const override {
393393
return get_acting_recovery_backfill();
394394
}
395+
const shard_id_set &get_acting_recovery_backfill_shard_id_set() const override {
396+
return PG::get_acting_recovery_backfill_shard_id_set();
397+
}
395398
const std::set<pg_shard_t> &get_acting_shards() const override {
396399
return recovery_state.get_actingset();
397400
}

0 commit comments

Comments
 (0)