add checkpoint
This commit is contained in:
parent
0330f3b2db
commit
832aed5e98
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue