]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: respect osdmap message limits 29242/head
authorSage Weil <sage@redhat.com>
Fri, 8 Feb 2019 14:59:52 +0000 (08:59 -0600)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jul 2019 10:08:31 +0000 (12:08 +0200)
commit57c4e5bff500566c8851a72bc400bf03d9ad6354
tree127258055c93c67ff95b3f728bd1e94003fec97a
parentc731c85a55c5eeb4a32ac97ae4d0576acbdd4f6e
osd/OSD: respect osdmap message limits

We restructure the function significantly to let us work forwards instead
of backwards through epochs.  We also make the assumption that the OSD
will have the maps it is supposed to have.  If we for some reason fail to
load a map, we fall back to something minimal, but in general there is
little point to sending a more complete message when local maps are missing
since it shouldn't ever happen anyway and the receiver can always go get
maps from the mon.

Fixes: http://tracker.ceph.com/issues/38040
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 47a3f63ef71522d6b9572e81674598dd3e19df9d)
src/osd/OSD.cc