Fix incorrect nls format of index sstable build task

This commit is contained in:
Hongqin-Li 2023-04-19 07:48:30 +00:00 committed by ob-robot
parent 8d1f639f7c
commit 76b4679dc4

View File

@ -171,6 +171,11 @@ ObAsyncTask *ObIndexSSTableBuildTask::deep_copy(char *buf, const int64_t buf_siz
parallelism_,
root_service_,
inner_sql_exec_addr_);
if (OB_SUCCESS != (task->set_nls_format(nls_date_format_, nls_timestamp_format_, nls_timestamp_tz_format_))) {
task->~ObIndexSSTableBuildTask();
task = nullptr;
LOG_WARN_RET(OB_ALLOCATE_MEMORY_FAILED, "failed to set nls format");
}
}
return task;
}