]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PGLog: set dirty_to to max to avoid partial writes
authormyoungwon oh <ohmyoungwon@gmail.com>
Sat, 14 Feb 2026 08:07:39 +0000 (17:07 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 Feb 2026 07:32:32 +0000 (16:32 +0900)
Signed-off-by: Myoungwon Oh <ohmyoungwon@gmail.com>
src/osd/PGLog.cc

index e457883c87aa281f7d3925f8c75f51b6c738988f..9f9d43304b676dad156c4661f176765041656ae2 100644 (file)
@@ -526,9 +526,16 @@ void PGLog::merge_log(pg_info_t &oinfo, pg_log_t&& olog, pg_shard_t fromosd,
     changed = true;
   }
 
+  if (changed && pool.is_crimson()) {
+    mark_dirty_to(eversion_t::max());
+  }
+
   // now handle dups
   if (merge_log_dups(olog)) {
     changed = true;
+    if (pool.is_crimson()) {
+      mark_dirty_to_dups(eversion_t::max());
+    }
   }
 
   dout(10) << "merge_log result " << log << " " << missing <<