mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 02:30:51 +00:00
Fix typo in Memory: reuse buffer if capacity allows.
This commit is contained in:
parent
ce92615add
commit
8f3bd8f546
@ -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