From: Adam C. Emerson Date: Fri, 14 Apr 2023 18:58:16 +0000 (-0400) Subject: common/async: `io_context_pool` constructor takes int64_t X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8ea3dfe14b8386aa0153ec0b5a7bcd0bfede8117;p=ceph.git common/async: `io_context_pool` constructor takes int64_t 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 --- diff --git a/src/common/async/context_pool.h b/src/common/async/context_pool.h index 9c6cab7677db4..0fee5dd7fcacd 100644 --- a/src/common/async/context_pool.h +++ b/src/common/async/context_pool.h @@ -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() {