From e44e9776aebd4b8090a5b53c5ec4bbeb5deb0e72 Mon Sep 17 00:00:00 2001 From: parth-gr Date: Tue, 10 Jun 2025 20:13:34 +0530 Subject: [PATCH] rbdmirror: fix the nil point error check during status updates the status was still reading from the nil state, updated the code to dont read from nil object Signed-off-by: parth-gr (cherry picked from commit 0b4f89873c4a73dc2fb01143c21f99f1cd66e01f) --- pkg/daemon/ceph/client/mirror_health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/daemon/ceph/client/mirror_health.go b/pkg/daemon/ceph/client/mirror_health.go index 87e624540..334dc610a 100644 --- a/pkg/daemon/ceph/client/mirror_health.go +++ b/pkg/daemon/ceph/client/mirror_health.go @@ -114,7 +114,7 @@ func (c *mirrorChecker) CheckMirroringHealth() error { } // On success - if mirrorStatus.Summary != nil { + if mirrorStatus != nil { c.UpdateStatusMirroring(mirrorStatus.Summary, mirrorInfo, snapSchedStatus, "") } return nil