提交 4dc80e77 编写于 作者: H Hongze Cheng

fix compile error

上级 fad50b6e
......@@ -160,7 +160,7 @@ int tsdbCloseHelperFile(SRWHelper *pHelper, bool hasError) {
pHelper->files.dataF.fd = -1;
}
if (pHelper->files.lastF.fd > 0) {
if ((helperType(pHelper) == TSDB_WRITE_HELPER)) {
if (helperType(pHelper) == TSDB_WRITE_HELPER) {
fsync(pHelper->files.lastF.fd);
close(pHelper->files.lastF.fd);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册