[CP] fix offline ddl and drop index concurrency.

This commit is contained in:
obdev
2022-12-12 16:11:36 +00:00
committed by ob-robot
parent 5122308a37
commit 6f5017d571
9 changed files with 36 additions and 30 deletions

View File

@ -1140,7 +1140,8 @@ int ObIndexBuildTask::clean_on_failed()
index_name = "__fake";
} else if (OB_FAIL(index_schema->get_index_name(index_name))) {
LOG_WARN("get index name failed", K(ret));
} else {
} else if (0 == parent_task_id_) {
// generate ddl_stmt if it is not a child task.
if (is_oracle_mode) {
if (OB_FAIL(drop_index_sql.append_fmt("drop index \"%.*s\"", index_name.length(), index_name.ptr()))) {
LOG_WARN("generate drop index sql failed", K(ret));