Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
hzcheng committed Jun 19, 2020
1 parent f948a51 commit fad50b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsdb/src/tsdbRWHelper.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit fad50b6

Please sign in to comment.