fix compile error

This commit is contained in:
Hongze Cheng 2020-06-19 10:32:44 +00:00
parent f948a51f6b
commit fad50b6e4b
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ int tsdbCloseHelperFile(SRWHelper *pHelper, bool hasError) {
pHelper->files.headF.fd = -1;
}
if (pHelper->files.dataF.fd > 0) {
if ((helperType(pHelper) == TSDB_WRITE_HELPER)) {
if (helperType(pHelper) == TSDB_WRITE_HELPER) {
tsdbUpdateFileHeader(&(pHelper->files.dataF), 0);
fsync(pHelper->files.dataF.fd);
}