load data sometimes coredump
This commit is contained in:
@ -42,6 +42,8 @@ ObFileReadParam::ObFileReadParam()
|
|||||||
int ObFileReader::open(const ObFileReadParam ¶m, ObIAllocator &allocator, ObFileReader *& file_reader)
|
int ObFileReader::open(const ObFileReadParam ¶m, ObIAllocator &allocator, ObFileReader *& file_reader)
|
||||||
{
|
{
|
||||||
int ret = OB_SUCCESS;
|
int ret = OB_SUCCESS;
|
||||||
|
file_reader = nullptr;
|
||||||
|
|
||||||
if (param.file_location_ == ObLoadFileLocation::SERVER_DISK) {
|
if (param.file_location_ == ObLoadFileLocation::SERVER_DISK) {
|
||||||
ObRandomFileReader *tmp_reader = OB_NEWx(ObRandomFileReader, &allocator, allocator);
|
ObRandomFileReader *tmp_reader = OB_NEWx(ObRandomFileReader, &allocator, allocator);
|
||||||
if (OB_ISNULL(tmp_reader)) {
|
if (OB_ISNULL(tmp_reader)) {
|
||||||
|
|||||||
@ -685,7 +685,7 @@ public:
|
|||||||
InsertTask,
|
InsertTask,
|
||||||
};
|
};
|
||||||
struct ToolBox {
|
struct ToolBox {
|
||||||
ToolBox() : expr_buffer(nullptr) {}
|
ToolBox() : file_reader(nullptr), job_status(nullptr), expr_buffer(nullptr) {}
|
||||||
int init(ObExecContext &ctx, ObLoadDataStmt &load_stmt);
|
int init(ObExecContext &ctx, ObLoadDataStmt &load_stmt);
|
||||||
int build_calc_partid_expr(ObExecContext &ctx,
|
int build_calc_partid_expr(ObExecContext &ctx,
|
||||||
ObLoadDataStmt &load_stmt,
|
ObLoadDataStmt &load_stmt,
|
||||||
|
|||||||
Reference in New Issue
Block a user