]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeofgw: prevent map corruption while processing beacons from deleted gws squid-nvmeof-8.0
authorLeonid Chernin <leonidc@il.ibm.com>
Mon, 8 Dec 2025 20:54:44 +0000 (22:54 +0200)
committerLeonid Chernin <leonidc@il.ibm.com>
Tue, 23 Dec 2025 07:21:19 +0000 (09:21 +0200)
commit2a83bdbbc442d94a3194ec311bdcf40de4d99058
tree87d75f333a7618f0372dd1f864a2dbc9fb2bb8c4
parentf7905cf4175872c94ee6c6d047668d4123f86274
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>
src/mon/NVMeofGwMon.cc