]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/client: validate connection before sending
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 15 Jul 2024 10:02:04 +0000 (10:02 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 28 Jul 2024 08:22:23 +0000 (11:22 +0300)
commit7de2bc553add0599ce388cc6ef5467ad08cb232b
treed65f1df6da7f949562e05515d32b0405ea39d9ca
parent5a4601994355afbd8708d3ef8def15c2b9706ff6
mgr/client: validate connection before sending

During the connection's lifecycle, it can be reset and set to
nullptr by other functions.
We need to verify that the connection is still available before
attempting to send data.

Fixes: https://tracker.ceph.com/issues/62162
Signed-off-by: NitzanMordhai <nmordech@redhat.com>
(cherry picked from commit 49c9dad15e5d5c182a88c1d9e21707bd1f8ccaba)
src/crimson/mgr/client.cc