fix compile error
This commit is contained in:
parent
fad50b6e4b
commit
4dc80e772d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue