From 42e968e7fbf4925ce8768a3407a2b2f0d6d890b4 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 14 Aug 2019 15:37:49 +0800 Subject: [PATCH] osd/PrimaryLogPG: finish_copyfrom - dirty omap if necessary otherwise we'll at risk of losing track of omap entries. Signed-off-by: xie xingguo --- src/osd/PrimaryLogPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index f1265778e4d81..573ff21200f1f 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); -- 2.39.5