mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
hash: fix FTBFS in "hash: reduce mutex contention using one mutex per hash table extent"
Somehow a delete failed to get merged. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
54d30485a7
commit
addb18354e
@ -636,11 +636,6 @@ BeesHashTable::BeesHashTable(shared_ptr<BeesContext> ctx, string filename, off_t
|
||||
m_flush_rate_limit(BEES_FLUSH_RATE),
|
||||
m_stats_file(m_ctx->home_fd(), "beesstats.txt")
|
||||
{
|
||||
// Reduce disk thrashing at startup: one reader at a time
|
||||
// m_extent_lock_set.max_size(1);
|
||||
// OK maybe a little faster
|
||||
m_extent_lock_set.max_size(bees_worker_thread_count());
|
||||
|
||||
// Sanity checks to protect the implementation from its weaknesses
|
||||
THROW_CHECK2(invalid_argument, BLOCK_SIZE_HASHTAB_BUCKET, BLOCK_SIZE_HASHTAB_EXTENT, (BLOCK_SIZE_HASHTAB_EXTENT % BLOCK_SIZE_HASHTAB_BUCKET) == 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user