diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 7b8051a5d75..d4074296c82 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -10231,7 +10231,8 @@ void ReplicatedPG::hit_set_clear() void ReplicatedPG::hit_set_setup() { - if (!is_primary() || + if (!is_active() || + !is_primary() || !pool.info.hit_set_count || !pool.info.hit_set_period || pool.info.hit_set_params.get_type() == HitSet::TYPE_NONE) { @@ -10518,7 +10519,8 @@ void ReplicatedPG::hit_set_trim(RepGather *repop, unsigned max) void ReplicatedPG::agent_setup() { assert(is_locked()); - if (!is_primary() || + if (!is_active() || + !is_primary() || pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE || pool.info.tier_of < 0 || !get_osdmap()->have_pg_pool(pool.info.tier_of)) {