From c7789f10fee63dac2103908941a375faa32acf5a Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 14 Apr 2023 14:58:16 -0400 Subject: [PATCH] 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 --- src/common/async/context_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/async/context_pool.h b/src/common/async/context_pool.h index 9c6cab7677d..0fee5dd7fca 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() { -- 2.47.3