From: Neha Ojha Date: Tue, 30 Jan 2018 21:34:11 +0000 (-0800) Subject: PG: primary should not be in the peer_info, skip if it is X-Git-Tag: v13.0.2~381^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20189%2Fhead;p=ceph.git PG: primary should not be in the peer_info, skip if it is Signed-off-by: Neha Ojha --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index fd3e268170ee..80cddeb90fb6 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.