未验证 提交 df194dbd 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10539 from taosdata/fix/TS-1233-D

[TS-1233]<fix>: fixed coredump when timestamp collection excessed thr…
...@@ -492,10 +492,10 @@ void tsBufAppend(STSBuf* pTSBuf, int32_t id, tVariant* tag, const char* pData, i ...@@ -492,10 +492,10 @@ void tsBufAppend(STSBuf* pTSBuf, int32_t id, tVariant* tag, const char* pData, i
} }
void tsBufFlush(STSBuf* pTSBuf) { void tsBufFlush(STSBuf* pTSBuf) {
if (pTSBuf->tsData.len <= 0) { if (pTSBuf->numOfGroups <= 0) {
return; 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.
先完成此消息的编辑!
想要评论请 注册