fix(stream): check the correct return value.

This commit is contained in:
Haojun Liao 2024-07-23 09:57:13 +08:00
parent e4bc6b33d5
commit 5f9f6310a4
1 changed files with 1 additions and 1 deletions

View File

@ -1289,7 +1289,7 @@ static int32_t mndProcessStreamCheckpoint(SRpcMsg *pReq) {
SStreamObj *p = NULL;
code = mndGetStreamObj(pMnode, pCheckpointInfo->streamId, &p);
if (p != NULL || code != 0) {
if (p != NULL && code == 0) {
code = mndProcessStreamCheckpointTrans(pMnode, p, checkpointId, 1, true);
sdbRelease(pSdb, p);