]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/async: fix multiple definition errors with spawn_throttle_impl
authorCasey Bodley <cbodley@redhat.com>
Wed, 26 Mar 2025 22:55:02 +0000 (18:55 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 27 Mar 2025 01:14:06 +0000 (21:14 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/async/detail/spawn_throttle_impl.h

index 9030f2662335964988d8b3d33308caa9a07b7671..75a28ac48e70b447b7bfd4008f208140fd8b2e2b 100644 (file)
@@ -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<spawn_throttle_impl>
 {
   if (y) {