]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 11 Dec 2025 06:37:08 +0000 (08:37 +0200)
commitb078211732ebc6f9d318648e8111b675c2fc4e52
treea0c4ed9affde491b4cdc0a35d7889bc7d69b09ff
parentfec2e294b64c17c3b6aa37cfd9af2b62f2a7cba2
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