]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: relax "pending_service_map.epoch > service_map.epoch" assert
authorMykola Golub <mgolub@suse.com>
Thu, 21 Apr 2022 08:57:25 +0000 (11:57 +0300)
committerMykola Golub <mgolub@suse.com>
Thu, 21 Apr 2022 08:57:25 +0000 (11:57 +0300)
commitcc2721ccdb33248a732abd1919df808ef8a1f80f
tree91eeae1ba721071678c38a5f9e80836d382bb3e1
parent161d7afe42c2f730a08a2a6deb2c1b2581ffe439
mgr: relax "pending_service_map.epoch > service_map.epoch" assert

When we are activating we may receive several service map updates
initiated by the previous active mgr. Treat them all as initial map.

The code also adds "pending_service_map_dirty == 0" assert, which we
expect is true when receiving an initial map -- otherwise we can't
just initialize pending_service_map with received map.

Fixes: https://tracker.ceph.com/issues/51835
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/mgr/DaemonServer.cc