From: xie xingguo Date: Wed, 14 Aug 2019 07:37:49 +0000 (+0800) Subject: osd/PrimaryLogPG: finish_copyfrom - dirty omap if necessary X-Git-Tag: v15.1.0~1839^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=42e968e7fbf4925ce8768a3407a2b2f0d6d890b4;p=ceph-ci.git osd/PrimaryLogPG: finish_copyfrom - dirty omap if necessary otherwise we'll at risk of losing track of omap entries. Signed-off-by: xie xingguo --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index f1265778e4d..573ff21200f 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -9394,6 +9394,7 @@ void PrimaryLogPG::finish_copyfrom(CopyFromCallback *cb) if (cb->results->has_omap) { dout(10) << __func__ << " setting omap flag on " << obs.oi.soid << dendl; obs.oi.set_flag(object_info_t::FLAG_OMAP); + ctx->clean_regions.mark_omap_dirty(); } else { dout(10) << __func__ << " clearing omap flag on " << obs.oi.soid << dendl; obs.oi.clear_flag(object_info_t::FLAG_OMAP);