1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Forgot something in the bytestreampool code.

This commit is contained in:
Patrick LeBlanc
2019-01-22 10:11:50 -06:00
parent d92be01ee2
commit 259060fb29

View File

@ -71,7 +71,10 @@ void ByteStreamPool::returnByteStream(ByteStream *bs)
else
{
boost::mutex::scoped_lock s(mutex);
freeByteStreams.push_back(bs);
if (freeByteStream.size() > maxFreeBuffers)
delete bs;
else
freeByteStreams.push_back(bs);
}
}