]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: remove dup is_primary() check
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Mar 2017 13:02:44 +0000 (21:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Mar 2017 13:02:44 +0000 (21:02 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index e77fb070a4fe64f609fbab190decf9830b65a8a0..44ef72f02109122620bed951f452c0bf37f3c02c 100644 (file)
@@ -1862,8 +1862,6 @@ void PG::activate(ObjectStore::Transaction& t,
 
     state_set(PG_STATE_ACTIVATING);
     release_pg_backoffs();
-  }
-  if (is_primary()) {
     projected_last_update = info.last_update;
   }
   if (acting.size() >= pool.info.min_size) {