]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/OSD: respect osdmap message limits
authorSage Weil <sage@redhat.com>
Fri, 8 Feb 2019 14:59:52 +0000 (08:59 -0600)
committerSage Weil <sage@redhat.com>
Fri, 8 Feb 2019 17:00:05 +0000 (11:00 -0600)
commit47a3f63ef71522d6b9572e81674598dd3e19df9d
tree2c7ce5c8d783d51ada4513c87593d635fe7b4796
parentdcf1cd00cc6e2595c283b4a73a4de9df50e7330a
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>
src/osd/OSD.cc