Fix auto-commit of rebuild hidden table index

This commit is contained in:
Hongqin-Li
2023-09-11 08:40:39 +00:00
committed by ob-robot
parent a8f19c7fa5
commit 5e5df7e054
5 changed files with 62 additions and 62 deletions

View File

@ -443,7 +443,7 @@ int ObTableRedefinitionTask::copy_table_indexes()
int64_t active_task_cnt = 0;
// check if has rebuild index
if (has_rebuild_index_) {
} else if (OB_FAIL(ObDDLTaskRecordOperator::get_create_index_task_cnt(GCTX.root_service_->get_sql_proxy(), tenant_id_, object_id_, active_task_cnt))) {
} else if (OB_FAIL(ObDDLTaskRecordOperator::get_create_index_task_cnt(GCTX.root_service_->get_sql_proxy(), dst_tenant_id_, target_object_id_, active_task_cnt))) {
LOG_WARN("failed to check index task cnt", K(ret));
} else if (active_task_cnt >= MAX_ACTIVE_TASK_CNT) {
ret = OB_EAGAIN;