提交 2c64d08c 编写于 作者: X xywang

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

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