From: xie xingguo Date: Thu, 7 Apr 2016 08:21:04 +0000 (+0800) Subject: osd: reset backfill to false directly when we create a brand-new pg X-Git-Tag: v11.0.0~782^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=27e53055991f9418a70e327ccb93d32bfd914a2b;p=ceph.git osd: reset backfill to false directly when we create a brand-new pg Because under this case result is set to RES_NON and result == RES_SELF shall always return false. Signed-off-by: xie xingguo --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index fd87f660effd..46a31ed7652c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3450,7 +3450,7 @@ void OSD::handle_pg_peering_evt( PG *pg = _create_lock_pg( get_map(epoch), - pgid, false, result == RES_SELF, + pgid, false, false, role, up, up_primary, acting, acting_primary,