[4.2][Standby]Fix the lost of ret code

This commit is contained in:
obdev
2023-07-27 07:43:15 +00:00
committed by ob-robot
parent 16a48e22f1
commit feb4d4aa3d

View File

@ -1034,7 +1034,7 @@ int RestoreStatusInfo::restore_sync_status_to_string(char *str_buf, const int64_
|| sync_status_ >= RestoreSyncStatus::MAX_RESTORE_SYNC_STATUS) {
ret = OB_INVALID_ARGUMENT;
CLOG_LOG(WARN, "invalid restore status", K(sync_status_));
} else if (databuff_printf(str_buf, str_len, "%s", restore_status_str[int(sync_status_)])) {
} else if (OB_FAIL(databuff_printf(str_buf, str_len, "%s", restore_status_str[int(sync_status_)]))) {
CLOG_LOG(WARN, "databuff printf restore status str failed", K(sync_status_));
}
return ret;