Skip to content

Commit

Permalink
PG: primary should not be in the peer_info, skip if it is
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Ojha <nojha@redhat.com>
  • Loading branch information
neha-ojha committed Jan 30, 2018
1 parent 8d5da83 commit 921f111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/PG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 921f111

Please sign in to comment.