fix table_redefinint_task before call finish_redef_task() reach after repending status

This commit is contained in:
obdev
2023-06-07 03:42:52 +00:00
committed by ob-robot
parent 030affc1d8
commit 06dba0282f
3 changed files with 16 additions and 12 deletions

View File

@ -828,10 +828,9 @@ int ObTableRedefinitionTask::repending(const share::ObDDLTaskStatus next_task_st
return ret;
}
bool ObTableRedefinitionTask::check_task_status_before_pending(const share::ObDDLTaskStatus task_status)
bool ObTableRedefinitionTask::check_task_status_is_pending(const share::ObDDLTaskStatus task_status)
{
return task_status == ObDDLTaskStatus::PREPARE || task_status == ObDDLTaskStatus::WAIT_TRANS_END
|| task_status == ObDDLTaskStatus::LOCK_TABLE || task_status == ObDDLTaskStatus::CHECK_TABLE_EMPTY;
return task_status == ObDDLTaskStatus::REPENDING;
}
int ObTableRedefinitionTask::process()

View File

@ -65,7 +65,7 @@ public:
virtual bool support_longops_monitoring() const override { return true; }
virtual void flt_set_task_span_tag() const override;
virtual void flt_set_status_span_tag() const override;
static bool check_task_status_before_pending(const share::ObDDLTaskStatus task_status);
static bool check_task_status_is_pending(const share::ObDDLTaskStatus task_status);
INHERIT_TO_STRING_KV("ObDDLRedefinitionTask", ObDDLRedefinitionTask,
K(has_rebuild_index_), K(has_rebuild_constraint_), K(has_rebuild_foreign_key_),
K(is_copy_indexes_), K(is_copy_triggers_), K(is_copy_constraints_),