mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
More granular assertion in Arena.h
This commit is contained in:
parent
1927212f67
commit
6793cd7cca
@ -220,7 +220,8 @@ public:
|
|||||||
// This method only works for extending the last allocation. For lack of
|
// This method only works for extending the last allocation. For lack of
|
||||||
// original size, check a weaker condition: that 'begin' is at least in
|
// original size, check a weaker condition: that 'begin' is at least in
|
||||||
// the current Chunk.
|
// the current Chunk.
|
||||||
assert(range_start >= head->begin && range_start < head->end);
|
assert(range_start >= head->begin);
|
||||||
|
assert(range_start < head->end);
|
||||||
|
|
||||||
if (head->pos + additional_bytes <= head->end)
|
if (head->pos + additional_bytes <= head->end)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user