use return macro with oom
This commit is contained in:
parent
6ce5320750
commit
f43ce95777
|
@ -263,7 +263,7 @@ static int buildHandle(STQ* pTq, STqHandle* handle) {
|
|||
|
||||
handle->pRef = walOpenRef(pVnode->pWal);
|
||||
if (handle->pRef == NULL) {
|
||||
return -1;
|
||||
TAOS_RETURN(TSDB_CODE_OUT_OF_MEMORY);
|
||||
}
|
||||
|
||||
TAOS_CHECK_RETURN(walSetRefVer(handle->pRef, handle->snapshotVer));
|
||||
|
|
Loading…
Reference in New Issue