]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: relax "pending_service_map.epoch > service_map.epoch" assert 46738/head
authorMykola Golub <mgolub@suse.com>
Thu, 21 Apr 2022 08:57:25 +0000 (11:57 +0300)
committerMykola Golub <mgolub@suse.com>
Fri, 17 Jun 2022 18:32:41 +0000 (21:32 +0300)
commit7fc2f0f675a8c9da7cc1563854ab79578f906f1e
treeca93447c3952e250b367932edf7c1403760b96cf
parent9521b901bfd5afb8d7caabc1fcdd6bdb5b5e2c04
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>
(cherry picked from commit cc2721ccdb33248a732abd1919df808ef8a1f80f)
src/mgr/DaemonServer.cc