when no record exists, select for update return entry not exist

This commit is contained in:
Charles0429
2023-02-06 17:01:09 +08:00
committed by ob-robot
parent 665d6458ea
commit 2ebe490528

View File

@ -2876,7 +2876,7 @@ int ObDDLTaskRecordOperator::select_for_update(
LOG_WARN("fail to get sql result", K(ret), KP(result));
} else if (OB_FAIL(result->next())) {
if (OB_ITER_END == ret) {
ret = OB_SUCCESS;
ret = OB_ENTRY_NOT_EXIST;
} else {
LOG_WARN("fail to get next row", K(ret));
}