fix drop index concurrently.

This commit is contained in:
obdev
2023-02-17 17:46:57 +00:00
committed by ob-robot
parent 2d13af9ae5
commit aaf6b28469

View File

@ -1226,6 +1226,7 @@ int ObIndexBuildTask::clean_on_failed()
&& OB_FAIL(update_index_status_in_schema(*index_schema, ObIndexStatus::INDEX_STATUS_INDEX_ERROR))) {
LOG_WARN("update index schema failed", K(ret));
} else if (drop_index_on_failed) {
DEBUG_SYNC(CREATE_INDEX_FAILED);
bool is_trans_end = false;
int64_t tmp_snapshot_version = 0;
if (ObIndexStatus::INDEX_STATUS_INDEX_ERROR != index_schema->get_index_status()) {