]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeofgw: prevent map corruption while processing beacons from deleted gws wip-vallari-test-7Jan-centos9-only
authorLeonid Chernin <leonidc@il.ibm.com>
Mon, 8 Dec 2025 20:54:44 +0000 (22:54 +0200)
committerVallari Agrawal <vallari.agrawal@ibm.com>
Wed, 7 Jan 2026 13:45:35 +0000 (19:15 +0530)
commite06e30d53f0e5f4826c1e243ccea568c8d010dec
tree05cd355d464bbc2ae31ef87bbb3c6d77e29fd59a
parent19571e38a0ad7861e8e8657eec25a3a1c10cd83a
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