mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #33525 from kitaisreal/hash-table-constant-fix
HashTable constant fix
This commit is contained in:
commit
2088570a01
@ -323,7 +323,7 @@ private:
|
|||||||
UInt64 address = 0;
|
UInt64 address = 0;
|
||||||
};
|
};
|
||||||
static const UInt64 mask = 0xFFFFFFFFFFFFFFFC;
|
static const UInt64 mask = 0xFFFFFFFFFFFFFFFC;
|
||||||
static const UInt32 medium_set_size_max = 1UL << medium_set_power2_max;
|
static const UInt32 medium_set_size_max = 1ULL << medium_set_power2_max;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -280,7 +280,7 @@ public:
|
|||||||
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
|
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
|
||||||
{
|
{
|
||||||
memcpy(&n[0], p, 8);
|
memcpy(&n[0], p, 8);
|
||||||
n[0] &= -1ul >> s;
|
n[0] &= -1ULL >> s;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -114,7 +114,7 @@ public:
|
|||||||
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
|
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
|
||||||
{
|
{
|
||||||
memcpy(&n[0], p, 8);
|
memcpy(&n[0], p, 8);
|
||||||
n[0] &= -1ul >> s;
|
n[0] &= -1ULL >> s;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ static constexpr auto NS = 1000000000UL;
|
|||||||
|
|
||||||
/// Tracking window. Actually the size is not really important. We just want to avoid
|
/// Tracking window. Actually the size is not really important. We just want to avoid
|
||||||
/// throttles when there are no actions for a long period time.
|
/// throttles when there are no actions for a long period time.
|
||||||
static const double window_ns = 1UL * NS;
|
static const double window_ns = 1ULL * NS;
|
||||||
|
|
||||||
void Throttler::add(size_t amount)
|
void Throttler::add(size_t amount)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user