mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Update AllocationTrace.h
This commit is contained in:
parent
fa06056fa2
commit
5cc9600bbf
@ -12,7 +12,7 @@ struct AllocationTrace
|
||||
|
||||
ALWAYS_INLINE void onAlloc(void * ptr, size_t size) const
|
||||
{
|
||||
if (likely(sample_probability < 0))
|
||||
if (likely(sample_probability <= 0))
|
||||
return;
|
||||
|
||||
onAllocImpl(ptr, size);
|
||||
@ -20,7 +20,7 @@ struct AllocationTrace
|
||||
|
||||
ALWAYS_INLINE void onFree(void * ptr, size_t size) const
|
||||
{
|
||||
if (likely(sample_probability < 0))
|
||||
if (likely(sample_probability <= 0))
|
||||
return;
|
||||
|
||||
onFreeImpl(ptr, size);
|
||||
|
Loading…
Reference in New Issue
Block a user