mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Use mulhash for integer keys while retaining inthash_u64 on 32-bit architectures
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
377a907c0c
commit
8f22da9018
2 changed files with 31 additions and 3 deletions
|
|
@ -1773,7 +1773,7 @@ void bucket_free(void* void_bucket)
|
|||
|
||||
void bucket_insert(tommy_hashdyn* bucket_hash, time_t time_at, block_off_t count, int justsynced)
|
||||
{
|
||||
tommy_hash_t hash = tommy_inthash_u64(time_at);
|
||||
tommy_hash_t hash = bucket_time_hash(time_at);
|
||||
tommy_node* i = tommy_hashdyn_bucket(bucket_hash, hash);
|
||||
while (i) {
|
||||
struct snapraid_bucket* entry = i->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue