Fix illegal snapshot version used by direct load to create ddl major
This commit is contained in:
@ -2048,7 +2048,6 @@ int ObLoadDataDirectImpl::init_execute_context()
|
||||
load_param.sql_mode_ = execute_param_.sql_mode_;
|
||||
load_param.px_mode_ = false;
|
||||
load_param.online_opt_stat_gather_ = execute_param_.online_opt_stat_gather_;
|
||||
load_param.snapshot_version_ = ObTimeUtil::current_time_ns();
|
||||
if (OB_FAIL(direct_loader_.init(load_param,
|
||||
execute_param_.store_column_idxs_, &execute_ctx_))) {
|
||||
LOG_WARN("fail to init direct loader", KR(ret));
|
||||
|
||||
@ -65,7 +65,6 @@ int ObTableDirectInsertCtx::init(ObExecContext *exec_ctx,
|
||||
param.max_error_row_count_ = 0;
|
||||
param.dup_action_ = sql::ObLoadDupActionType::LOAD_STOP_ON_DUP;
|
||||
param.sql_mode_ = sql_mode;
|
||||
param.snapshot_version_ = ObTimeUtil::current_time_ns();
|
||||
if (OB_FAIL(table_load_instance_->init(param, store_column_idxs, load_exec_ctx_))) {
|
||||
LOG_WARN("failed to init direct loader", KR(ret));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user