]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/HitSet: mark copy ctor of HitSet::Params noexcept
authorKefu Chai <kchai@redhat.com>
Tue, 29 Jan 2019 09:18:21 +0000 (17:18 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 Jan 2019 12:04:53 +0000 (20:04 +0800)
commitf14f913fbfcd66526037ac8c5d94d88da05be3b6
treee27cac8ead0d9a05b6895083af691c3ec74fa326
parent05a262d5aa9af8bb89cd91eb79c7fbd0ff532df1
osd/HitSet: mark copy ctor of HitSet::Params noexcept

to be returned using seastar::future<...> the value type should satisfy
std::is_nothrow_constructible<T>.

with this change, pg_pool_t will be nothrow_constructible. and hence
can be returned using seastar::future<pg_pool_t>. otherwise
std::is_nothrow_constructible<pg_pool_t>::value would be false.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/HitSet.cc
src/osd/HitSet.h