]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: finish_copyfrom - dirty omap if necessary 29729/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 14 Aug 2019 07:37:49 +0000 (15:37 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Aug 2019 05:29:36 +0000 (13:29 +0800)
otherwise we'll at risk of losing track of omap entries.

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

index f1265778e4d81c8e40d90270803a68a1ff3a34e3..573ff21200f1fb1ef879549c146a247607705043 100644 (file)
@@ -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);