]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
nvmeofgw: prevent map corruption while processing beacons from deleted gws
authorLeonid Chernin <leonidc@il.ibm.com>
Mon, 8 Dec 2025 20:54:44 +0000 (22:54 +0200)
committerLeonid Chernin <leonidc@il.ibm.com>
Wed, 29 Apr 2026 13:33:51 +0000 (16:33 +0300)
commiteee0a684ae7b4616cec27afc44216a5fb9889fe5
tree60e396746a4009d829acc1a00d9c2a60ad055c4b
parent195a5caf639221cfe81159adcf36ab8aee5b2a52
nvmeofgw: prevent map corruption while processing beacons from deleted gws

Fix race issue of map corruption when deleted gw sends beacons
but this gw data was removed from pending map and still exists in map.
Process beacons only if GW's data exists in both maps:
main-map and pending-map, otherwise just ignore beacons.

fixes: https://tracker.ceph.com/issues/74160

Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
(cherry picked from commit 3636dc3598b7022bff623d686cbee83ed288d966)
src/mon/NVMeofGwMon.cc