mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 16:04:15 +01:00
ircd::db: Do our own default sharding calc based on request context contention.
This commit is contained in:
parent
65f52b0610
commit
da46a2ac48
1 changed files with 3 additions and 3 deletions
|
@ -2219,9 +2219,9 @@ noexcept
|
|||
|
||||
decltype(ircd::db::database::cache::DEFAULT_SHARD_BITS)
|
||||
ircd::db::database::cache::DEFAULT_SHARD_BITS
|
||||
{
|
||||
-1
|
||||
};
|
||||
(
|
||||
std::min(std::log2(size_t(db::request_pool_size)), 8.0)
|
||||
);
|
||||
|
||||
decltype(ircd::db::database::cache::DEFAULT_STRICT)
|
||||
ircd::db::database::cache::DEFAULT_STRICT
|
||||
|
|
Loading…
Reference in a new issue