]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
nvmeofgw: prevent map corruption while processing beacons from deleted gws reef-nvmeof
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 11:01:42 +0000 (13:01 +0200)
commit615fb84f682b2b51b26ec3a8588956934bc1d91f
treef8abdf5219bb454b524ab336cf234b34dd055a4f
parent37fbec3b7059a09b33b5e5b271bffc0bc24ac2f6
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