fix compile error

This commit is contained in:
Hongze Cheng 2020-06-19 10:55:31 +00:00
parent fad50b6e4b
commit 4dc80e772d
1 changed files with 1 additions and 1 deletions

View File

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