use return macro with oom

This commit is contained in:
Minglei Jin 2024-07-19 14:18:52 +08:00
parent 6ce5320750
commit f43ce95777
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ static int buildHandle(STQ* pTq, STqHandle* handle) {
handle->pRef = walOpenRef(pVnode->pWal); handle->pRef = walOpenRef(pVnode->pWal);
if (handle->pRef == NULL) { if (handle->pRef == NULL) {
return -1; TAOS_RETURN(TSDB_CODE_OUT_OF_MEMORY);
} }
TAOS_CHECK_RETURN(walSetRefVer(handle->pRef, handle->snapshotVer)); TAOS_CHECK_RETURN(walSetRefVer(handle->pRef, handle->snapshotVer));