From 15de5a9ae50eecf0a30c2285b165446f70db4914 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 89ac49920..6e49984b6 100644 --- a/pkg/daemon/ceph/client/mirror_health.go +++ b/pkg/daemon/ceph/client/mirror_health.go @@ -112,7 +112,7 @@ func (c *mirrorChecker) CheckMirroringHealth() error { } // On success - if mirrorStatus.Summary != nil { + if mirrorStatus != nil { c.UpdateStatusMirroring(mirrorStatus.Summary, mirrorInfo, snapSchedStatus, "") } return nil