From a76a129f75fa8611638fea444a2bded891ed9cbd Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 1 Apr 2014 12:19:52 -0700 Subject: [PATCH] PG: set role for replicated even if role != shard Fixes: #7939 Signed-off-by: Samuel Just --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index fab6981688f74..55d791cbe9d38 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4644,7 +4644,7 @@ void PG::start_peering_interval( state_clear(PG_STATE_REMAPPED); int role = osdmap->calc_pg_role(osd->whoami, acting, acting.size()); - if (role == pg_whoami.shard) + if (pool.info.is_replicated() || role == pg_whoami.shard) set_role(role); else set_role(-1); -- 2.47.3