]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: reset backfill to false directly when we create a brand-new pg
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 7 Apr 2016 08:21:04 +0000 (16:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 23 Apr 2016 01:11:24 +0000 (09:11 +0800)
Because under this case result is set to RES_NON and result == RES_SELF
shall always return false.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index fd87f660effd5e9b2fcb73f51536dc627dbf0f11..46a31ed7652c5b663d949e4f6b6fac0770d4ad21 100644 (file)
@@ -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,