0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00

ircd::db::database::cache: Fix the shard bits default.

This commit is contained in:
Jason Volk 2019-04-24 01:52:59 -07:00
parent dd4090e11b
commit 604c103bbc

View file

@ -2938,7 +2938,7 @@ noexcept
decltype(ircd::db::database::cache::DEFAULT_SHARD_BITS)
ircd::db::database::cache::DEFAULT_SHARD_BITS
(
std::min(std::log2(size_t(db::request_pool_size)), 16.0)
std::log2(std::min(size_t(db::request_pool_size), 16UL))
);
decltype(ircd::db::database::cache::DEFAULT_STRICT)