Skip to content

Commit

Permalink
Merge pull request #4416 from xinxinsh/wip-10976-firefly
Browse files Browse the repository at this point in the history
fix PG::all_unfound_are_queried_or_lost for non-existent osds

Reviewed-by: Samuel Just <sjust@redhat.com>
  • Loading branch information
Loic Dachary committed May 15, 2015
2 parents f273792 + 1f6b1bb commit ac7d28a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/PG.cc
Expand Up @@ -763,6 +763,8 @@ bool PG::all_unfound_are_queried_or_lost(const OSDMapRef osdmap) const
if (iter != peer_info.end() &&
(iter->second.is_empty() || iter->second.dne()))
continue;
if (!osdmap->exists(peer->osd))
continue;
const osd_info_t &osd_info(osdmap->get_info(peer->osd));
if (osd_info.lost_at <= osd_info.up_from) {
// If there is even one OSD in might_have_unfound that isn't lost, we
Expand Down

0 comments on commit ac7d28a

Please sign in to comment.