load data sometimes coredump

This commit is contained in:
hnwyllmm
2024-02-08 05:05:51 +00:00
committed by ob-robot
parent 3582dcb33b
commit c581715dbb
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,8 @@ ObFileReadParam::ObFileReadParam()
int ObFileReader::open(const ObFileReadParam &param, ObIAllocator &allocator, ObFileReader *& file_reader)
{
int ret = OB_SUCCESS;
file_reader = nullptr;
if (param.file_location_ == ObLoadFileLocation::SERVER_DISK) {
ObRandomFileReader *tmp_reader = OB_NEWx(ObRandomFileReader, &allocator, allocator);
if (OB_ISNULL(tmp_reader)) {