[BUG] add case for write only index of double update

This commit is contained in:
Handora
2023-06-01 14:11:51 +00:00
committed by ob-robot
parent 2a28ee0b5c
commit 1abc669899
3 changed files with 28 additions and 8 deletions

View File

@ -1130,6 +1130,10 @@ int ObDMLService::init_dml_param(const ObDASDMLBaseCtDef &base_ctdef,
if (base_ctdef.is_insert_up_) {
dml_param.write_flag_.set_is_insert_up();
}
if (dml_param.table_param_->get_data_table().is_storage_index_table()
&& !dml_param.table_param_->get_data_table().can_read_index()) {
dml_param.write_flag_.set_is_write_only_index();
}
return ret;
}