From c6e6ced1de047c08a913ede898985f51255fda0d Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 20 Feb 2014 16:00:52 -0800 Subject: [PATCH] PG::build_might_have_unfound: skip CRUSH_ITEM_NONE Signed-off-by: Samuel Just --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 0941d2748343..f6bb826b2038 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1355,7 +1355,7 @@ void PG::build_might_have_unfound() std::vector::const_iterator a = interval.acting.begin(); std::vector::const_iterator a_end = interval.acting.end(); for (; a != a_end; ++a, ++i) { - if (*a != osd->whoami) + if (*a != CRUSH_ITEM_NONE && *a != osd->whoami) might_have_unfound.insert( pg_shard_t( *a, -- 2.47.3