mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix typo in Memory: reuse buffer if capacity allows. (#7797)
This commit is contained in:
parent
7084d090e8
commit
fbee4ca3ec
@ -77,7 +77,7 @@ struct Memory : boost::noncopyable, Allocator
|
||||
m_capacity = new_size;
|
||||
alloc();
|
||||
}
|
||||
else if (new_size <= m_size)
|
||||
else if (new_size <= m_capacity - pad_right)
|
||||
{
|
||||
m_size = new_size;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user