!11 【轻量级 PR】:修复DCC单位问题

Merge pull request !11 from yewk/N/A
This commit is contained in:
opengauss-bot
2022-04-21 03:15:44 +00:00
committed by Gitee

View File

@ -913,7 +913,12 @@ static status_t InitDccInfoAndCreateThread(const DrvApiInfo *apiInfo)
write_runlog(ERROR, "timeout(%d) is invalid.\n", apiInfo->timeOut); write_runlog(ERROR, "timeout(%d) is invalid.\n", apiInfo->timeOut);
return CM_ERROR; return CM_ERROR;
} }
g_timeOut = (uint32)apiInfo->timeOut; const int32 toSec = 1000;
if (apiInfo->timeOut < toSec) {
g_timeOut = 1;
} else {
g_timeOut = (uint32)(apiInfo->timeOut / toSec);
}
st = GetCurNodeIdx(apiInfo); st = GetCurNodeIdx(apiInfo);
CM_RETURN_IFERR(st); CM_RETURN_IFERR(st);