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 <aemerson@redhat.com>
This commit is contained in:
Adam C. Emerson 2023-04-14 14:58:16 -04:00 committed by Adam Emerson
parent 809e1304b0
commit c7789f10fe

View 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() {