[fix](memory) Fix disable_mem_pools to disable cache #12087

This commit is contained in:
Xinyi Zou
2022-08-26 11:43:19 +08:00
committed by GitHub
parent 0f4a1e811b
commit 82ca62dfcc
4 changed files with 15 additions and 2 deletions

View File

@ -239,7 +239,7 @@ Status BufferPool::BufferAllocator::AllocateInternal(int64_t len, BufferHandle*
}
if (UNLIKELY(len > system_bytes_limit_)) {
err_stream << "Tried to allocate buffer of " << len << " bytes"
<< " > buffer pool limit of " << MAX_BUFFER_BYTES << " bytes";
<< " > buffer pool limit of " << system_bytes_limit_ << " bytes";
return Status::InternalError(err_stream.str());
}