]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/async: `io_context_pool` constructor takes int64_t
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 14 Apr 2023 18:58:16 +0000 (14:58 -0400)
committerAdam Emerson <aemerson@redhat.com>
Thu, 14 Sep 2023 21:48:01 +0000 (17:48 -0400)
Just because this is what Ceph's config uses and it saves a narrowing
conversion. If we want to set a max value on the thread count, we
should do it in config.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/async/context_pool.h

index 9c6cab7677db4504efd8ec3292da172336009ea2..0fee5dd7fcacd323502ef73871ab61f9b78f141b 100644 (file)
@@ -46,7 +46,7 @@ class io_context_pool {
   }
 public:
   io_context_pool() noexcept {}
-  io_context_pool(std::int16_t threadcnt) noexcept {
+  io_context_pool(std::int64_t threadcnt) noexcept {
     start(threadcnt);
   }
   ~io_context_pool() {