From: Casey Bodley Date: Wed, 26 Mar 2025 22:55:02 +0000 (-0400) Subject: common/async: fix multiple definition errors with spawn_throttle_impl X-Git-Tag: v20.3.0~135^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2800ebe1ca687858404f15887aa795b3447c7c0e;p=ceph.git common/async: fix multiple definition errors with spawn_throttle_impl Signed-off-by: Casey Bodley --- diff --git a/src/common/async/detail/spawn_throttle_impl.h b/src/common/async/detail/spawn_throttle_impl.h index 9030f266233..75a28ac48e7 100644 --- a/src/common/async/detail/spawn_throttle_impl.h +++ b/src/common/async/detail/spawn_throttle_impl.h @@ -169,7 +169,7 @@ struct spawn_throttle_handler { } }; -spawn_throttle_handler spawn_throttle_impl::get() +inline spawn_throttle_handler spawn_throttle_impl::get() { report_exception(); // throw unreported exception @@ -345,8 +345,8 @@ class async_spawn_throttle_impl final : } }; -auto spawn_throttle_impl::create(optional_yield y, size_t limit, - cancel_on_error on_error) +inline auto spawn_throttle_impl::create(optional_yield y, size_t limit, + cancel_on_error on_error) -> boost::intrusive_ptr { if (y) {