change check out seq

This commit is contained in:
yihaoDeng 2023-11-08 20:29:37 +08:00
parent 08e3448498
commit 0f98f4daa5
1 changed files with 1 additions and 4 deletions

View File

@ -1219,14 +1219,11 @@ static int32_t mndProcessStreamDoCheckpoint(SRpcMsg *pReq) {
if ((code = mndCheckNodeStatus(pMnode)) != 0) {
return code;
}
SMStreamDoCheckpointMsg *pMsg = (SMStreamDoCheckpointMsg *)pReq->pCont;
int64_t checkpointId = pMsg->checkpointId;
while (1) {
pIter = sdbFetch(pSdb, SDB_STREAM, pIter, (void **)&pStream);
if (pIter == NULL) break;
code = mndProcessStreamCheckpointTrans(pMnode, pStream, checkpointId);
code = mndProcessStreamCheckpointTrans(pMnode, pStream, pStream->checkpointId + 1);
sdbRelease(pSdb, pStream);
if (code == -1) {
break;