add checkpoint

This commit is contained in:
yihaoDeng 2023-06-25 17:10:59 +08:00
parent 0330f3b2db
commit 832aed5e98
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ int32_t streamSnapWrite(SStreamSnapWriter* pWriter, uint8_t* pData, uint32_t nDa
taosArrayPush(handle->pFileList, &item); taosArrayPush(handle->pFileList, &item);
handle->fd = taosOpenFile(taosArrayGet(handle->pFileList, taosArrayGetSize(handle->pFileList) - 1), TD_FILE_WRITE); handle->fd = taosOpenFile(taosArrayGet(handle->pFileList, taosArrayGetSize(handle->pFileList) - 1), TD_FILE_WRITE);
taosWriteFile(handle->fd, pHdr->data, pHdr->size);
handle->currFileIdx += 1; handle->currFileIdx += 1;
} }