mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
Fix weakHash
This commit is contained in:
parent
c4e73c10c9
commit
33db7f3988
@ -94,6 +94,7 @@ inline UInt32 updateWeakHash32(const DB::UInt8 * pos, size_t size, DB::UInt32 u
|
||||
}
|
||||
|
||||
auto word = unalignedLoad<UInt64>(end - 8);
|
||||
word &= (~UInt64(0)) << DB::UInt8(8 * (8 - (end - pos)));
|
||||
return intHashCRC32(word, updated_value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user