osd/PG: explicitly clear num_objects_missing when approximate

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2018-09-19 12:07:15 +08:00
parent ab241bf7e9
commit 90eda153f3

View 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;