提交 6cd8c231 编写于 作者: X xywang

[TS-1233]<fix>: fixed coredump when timestamp collection excessed threshold

上级 fd93e5b8
......@@ -492,6 +492,10 @@ void tsBufAppend(STSBuf* pTSBuf, int32_t id, tVariant* tag, const char* pData, i
}
void tsBufFlush(STSBuf* pTSBuf) {
if (pTSBuf->numOfGroups <= 0) {
return;
}
writeDataToDisk(pTSBuf);
shrinkBuffer(&pTSBuf->tsData);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册