]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix d3n crash in StoreManager::get_config()
authorCasey Bodley <cbodley@redhat.com>
Thu, 1 Sep 2022 15:08:06 +0000 (11:08 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 1 Sep 2022 15:08:08 +0000 (11:08 -0400)
commitafd799eae1f3d4a35f28db6a93e700c785c91a9f
treeb18408b554a00cb67e0179c773c1ec40982e2e20
parentf4df4090b040f1d2c2912533f0cbf5fae6fab9c4
rgw: fix d3n crash in StoreManager::get_config()

config options with `type: size` are not actually `size_t` but
`uint64_t`, so accessing them with `get_val<size_t>()` leads to
a `bad_variant_access` exception. use the `Option::size_t` type
instead

Fixes: https://tracker.ceph.com/issues/57195
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sal.cc