]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: explicitly clear num_objects_missing when approximate 24004/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 19 Sep 2018 04:07:15 +0000 (12:07 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 19 Sep 2018 04:07:15 +0000 (12:07 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index 612ec6c583ca55a60d828887795f63e33fe4ab4d..12678cd4acfc0c7e7e1a70131a29f96b35c6fcf2 100644 (file)
@@ -1914,6 +1914,7 @@ void PG::activate(ObjectStore::Transaction& t,
     dout(10) << "activate - no missing, moving last_complete " << info.last_complete 
             << " -> " << info.last_update << dendl;
     info.last_complete = info.last_update;
+    info.stats.stats.sum.num_objects_missing = 0;
     pg_log.reset_recovery_pointers();
   } else {
     dout(10) << "activate - not complete, " << missing << dendl;