[CP] add error code when alloc memory failed

This commit is contained in:
obdev
2023-07-11 18:48:08 +00:00
committed by ob-robot
parent e354f149d2
commit e269245733
12 changed files with 21 additions and 2 deletions

View File

@ -951,6 +951,7 @@ int ObLoadDataDirectImpl::SimpleDataSplitUtils::split(const DataAccessParam &dat
data_desc_ret.start_ = data_desc.start_;
allocator.set_tenant_id(MTL_ID());
if (OB_ISNULL(buf = static_cast<char *>(allocator.alloc(buf_size)))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("fail to alloc memory", KR(ret));
}
for (int64_t i = 0; OB_SUCC(ret) && i < count - 1; ++i) {