Fix ObReserveArenaAllocator reuse() and reset(). And reuse rows_info.scan_mem_allocator at the end of exist.
This commit is contained in:
@ -80,7 +80,7 @@ public:
|
||||
}
|
||||
virtual void reset() override
|
||||
{
|
||||
if (pos_ > MAX_RESERVE_SIZE - 1) {
|
||||
if (allocator_.used() > 0) {
|
||||
allocator_.reset();
|
||||
}
|
||||
pos_ = 0;
|
||||
@ -88,7 +88,7 @@ public:
|
||||
}
|
||||
virtual void reuse() override
|
||||
{
|
||||
if (pos_ > MAX_RESERVE_SIZE - 1) {
|
||||
if (allocator_.used() > 0) {
|
||||
allocator_.reuse();
|
||||
}
|
||||
pos_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user