fix switch status failed.

This commit is contained in:
obdev
2023-02-14 03:15:02 +00:00
committed by ob-robot
parent c6ded9ad28
commit 1e90e30019
6 changed files with 21 additions and 6 deletions

View File

@ -711,6 +711,9 @@ int ObConstraintTask::validate_constraint_valid()
if (OB_UNLIKELY(!is_inited_)) {
ret = OB_NOT_INIT;
LOG_WARN("ObConstraintTask has not been inited", K(ret));
} else if (OB_UNLIKELY(snapshot_version_ <= 0)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected snapshot", K(ret), KPC(this));
} else if (OB_FAIL(check_replica_end(is_check_replica_end))) {
LOG_WARN("check build replica end", K(ret));
} else {