]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: primary should not be in the peer_info, skip if it is 20189/head
authorNeha Ojha <nojha@redhat.com>
Tue, 30 Jan 2018 21:34:11 +0000 (13:34 -0800)
committerNeha Ojha <nojha@redhat.com>
Tue, 30 Jan 2018 23:43:57 +0000 (15:43 -0800)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/PG.cc

index fd3e268170eec7e224f660c875dd28201c88f07a..80cddeb90fb6a567cb2dfdd2fea1c2b90c5641ec 100644 (file)
@@ -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.