]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: check if backfill_state exists when judging objects' 53963/head
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 17 Aug 2023 03:09:05 +0000 (11:09 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:52:37 +0000 (11:52 +0000)
degradation

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit 04764838b5395a4e4d0c872f2d2a433fc4aec074)

src/crimson/osd/pg.cc

index 3d5bb20d408b33c0b3eb995e3d9a0ac8d8ffe5b8..09f7c9cfe20cdef28aff93bf8172b66494703b11 100644 (file)
@@ -1510,6 +1510,7 @@ bool PG::is_degraded_or_backfilling_object(const hobject_t& soid) const {
     // we are backfilling it
     if (is_backfill_target(peer) &&
         peering_state.get_peer_info(peer).last_backfill <= soid &&
+        recovery_handler->backfill_state &&
        recovery_handler->backfill_state->get_last_backfill_started() >= soid &&
        recovery_backend->is_recovering(soid)) {
       return true;