[FEAT MERGE] transaction pdml support optimization

Co-authored-by: yyy-hust <yyy.hust@gmail.com>
Co-authored-by: SanmuWangZJU <sanmuwang.ws@gmail.com>
This commit is contained in:
chinaxing
2023-12-16 12:42:52 +00:00
committed by ant-ob-hengtang
parent eaa353f503
commit 438a70b2b8
169 changed files with 8960 additions and 3921 deletions

View File

@ -127,6 +127,7 @@ int ObDASInsertOp::insert_rows()
ObDASIndexDMLAdaptor<DAS_OP_TABLE_INSERT, ObDASDMLIterator> ins_adaptor;
ins_adaptor.tx_desc_ = trans_desc_;
ins_adaptor.snapshot_ = snapshot_;
ins_adaptor.write_branch_id_ = write_branch_id_;
ins_adaptor.ctdef_ = ins_ctdef_;
ins_adaptor.rtdef_ = ins_rtdef_;
ins_adaptor.related_ctdefs_ = &related_ctdefs_;
@ -159,7 +160,7 @@ int ObDASInsertOp::insert_row_with_fetch()
if (ins_ctdef_->table_rowkey_types_.empty()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("table_rowkey_types is invalid", K(ret));
} else if (OB_FAIL(ObDMLService::init_dml_param(*ins_ctdef_, *ins_rtdef_, *snapshot_, op_alloc_, dml_param))) {
} else if (OB_FAIL(ObDMLService::init_dml_param(*ins_ctdef_, *ins_rtdef_, *snapshot_, write_branch_id_, op_alloc_, dml_param))) {
LOG_WARN("init dml param failed", K(ret), KPC_(ins_ctdef), KPC_(ins_rtdef));
} else if (OB_ISNULL(buf = op_alloc_.alloc(sizeof(ObDASConflictIterator)))) {
ret = OB_ERR_UNEXPECTED;
@ -210,6 +211,7 @@ int ObDASInsertOp::insert_row_with_fetch()
} else if (OB_FAIL(ObDMLService::init_dml_param(*index_ins_ctdef,
*index_ins_rtdef,
*snapshot_,
write_branch_id_,
op_alloc_,
dml_param))) {
LOG_WARN("init index dml param failed", K(ret), KPC(index_ins_ctdef), KPC(index_ins_rtdef));