]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/options: add osd_map_message_max_bytes
authorSage Weil <sage@redhat.com>
Fri, 8 Feb 2019 13:22:20 +0000 (07:22 -0600)
committerKefu Chai <kchai@redhat.com>
Wed, 19 Jun 2019 03:47:34 +0000 (11:47 +0800)
commit09a3cf5e0f933fe5854ea97f10a50d1118d3751d
tree02456d77853a551240b1066fe474dd161218db60
parentda246edbc62460c349adb76877b9ca1f6611b9b6
common/options: add osd_map_message_max_bytes

Limit MOSDMap message size by bytes as well as map count.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e15be00560c1492e0807d0779cfd0d6088396b3e)

Conflicts:
src/common/config_values.h: the changes in this file is applied
to src/common/config.h instead. because, src/common/config_values.h
is extracted in 4718b7cb2fac65b2ac7014f42ba1a10181350f0b. which
happened after luminous, and that commit was not backported.
  also, the OPT_SIZE is changed to OPT_U64, as we don't have OPT_SIZE by
then, the size_t option support was added after luminous, and that
change was not backported. so let's use the uint64_t as an alternative,
as other *bytes settings are also using OPT_U64. and OSDMonitor.cc
will be accessing that setting using the legacy way instead of using
conf.get_val<>() interface, so this change will have no impact on the
fix.
src/common/legacy_config_opts.h
src/common/options.cc