Fix large_buffer_pool core

This commit is contained in:
taoshuning
2023-09-25 11:40:22 +00:00
committed by ob-robot
parent a51efe0917
commit d70ee9435b

View File

@ -171,14 +171,11 @@ LargeBufferPool::BufferNode::BufferNode(const BufferNode &other)
assign(other);
}
// BufferNode is the element of SEArray, and its contents will be transfered by assign function in SEArray reserve,
// so the buffer_ can not be freed in deconstruct function
LargeBufferPool::BufferNode::~BufferNode()
{
WLockGuard guard(rwlock_);
if (issued_) {
// do nothing
} else {
buffer_.purge();
}
// do nothing, buffer_ will be freed only with purge function
}
// maybe optimize lock usage