]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
nvmeofgw: prevent map corruption while processing beacons from deleted gws 66958/head
authorLeonid Chernin <leonidc@il.ibm.com>
Mon, 8 Dec 2025 20:54:44 +0000 (22:54 +0200)
committerTomer Haskalovitch <tomer.haska@ibm.com>
Tue, 27 Jan 2026 09:27:36 +0000 (11:27 +0200)
commit5059a1b8457da0f53e6a60f5a1e9b7d9ef1def56
tree985d4fdde6f549ebb71b7708d05f71cbee70ac8e
parent5467ad93a5bfbe6dfb73e585111a21003acabe91
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