]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: do not initialize up/acting twice
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 25 Jul 2018 08:11:05 +0000 (16:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 25 Jul 2018 08:11:05 +0000 (16:11 +0800)
let **init_primary_up_acting()** handle that instead.

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

index d283f4ad66b23b98fdaced50cea4fd0d2178d558..626ac818bd2050d0eda18e66d73f31e6fdce26e5 100644 (file)
@@ -3295,8 +3295,6 @@ void PG::init(
           << dendl;
 
   set_role(role);
-  acting = newacting;
-  up = newup;
   init_primary_up_acting(
     newup,
     newacting,