]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/osd_operations/client_request: rely on the checks in
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 28 Aug 2025 08:11:32 +0000 (16:11 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Thu, 28 Aug 2025 08:11:32 +0000 (16:11 +0800)
PG::do_recover_missing() to determine whether to recover clone objects

PeeringState::is_missing_any_head_or_clone_of() only checks whether the
head/clone object is missing on the primary.

Fixes: https://tracker.ceph.com/issues/72763
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/osd_operations/client_request.cc

index 3dd27ff55f77ed72a78c5630d1a0776082c0a900..5c1ab0fa4a7c15f58ed367dea94a02f6a07dd1a3 100644 (file)
@@ -361,8 +361,7 @@ ClientRequest::process_op(
     }
 
     std::set<snapid_t> snaps = snaps_need_to_recover();
-    if (!snaps.empty() &&
-        pg->is_missing_head_and_clones(m->get_hobj().get_head())) {
+    if (!snaps.empty()) {
       co_await recover_missing_snaps(pg, snaps);
     }
   }