From 921f1113ad2ab20a5f400160b03193012d431e97 Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Tue, 30 Jan 2018 13:34:11 -0800 Subject: [PATCH] PG: primary should not be in the peer_info, skip if it is Signed-off-by: Neha Ojha --- src/osd/PG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index fd3e268170eec..80cddeb90fb6a 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2740,6 +2740,8 @@ void PG::_update_calc_stats() if (!actingbackfill.count(peer.first)) { continue; } + // Primary should not be in the peer_info, skip if it is. + if (peer.first == pg_whoami) continue; missing = 0; // Backfill targets always track num_objects accurately // all other peers track missing accurately. -- 2.39.5