]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg: check if backfill_state exists when judging objects' 53031/head
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 17 Aug 2023 03:09:05 +0000 (11:09 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 17 Aug 2023 06:53:09 +0000 (14:53 +0800)
degradation

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/osd/pg.cc

index 85f6116e604b3a121f06976422ea76c4cac391a4..7cf3b158c89cfff19e0bd55ba49270048816136f 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;