Skip to content

Commit

Permalink
output/filedata: don't call file close
Browse files Browse the repository at this point in the history
Will be reenabled after file API is updated.
  • Loading branch information
victorjulien committed Jan 23, 2023
1 parent 71bc9e7 commit f7dbdb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/output-filedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void OutputFiledataLogFfc(ThreadVars *tv, OutputFiledataLoggerThreadData *td, Pa
* close the logger(s) */
if (FileDataSize(ff) == ff->content_stored && (file_trunc || file_close)) {
if (ff->state < FILE_STATE_CLOSED) {
FileCloseFilePtr(ff, NULL, 0, FILE_TRUNCATED);
ff->state = FILE_STATE_TRUNCATED;
}
file_flags |= OUTPUT_FILEDATA_FLAG_CLOSE;
CallLoggers(tv, store, p, ff, txv, tx_id, NULL, 0, file_flags, dir);
Expand All @@ -173,7 +173,7 @@ void OutputFiledataLogFfc(ThreadVars *tv, OutputFiledataLoggerThreadData *td, Pa
/* if file needs to be closed or truncated, inform
* loggers */
if ((file_close || file_trunc) && ff->state < FILE_STATE_CLOSED) {
FileCloseFilePtr(ff, NULL, 0, FILE_TRUNCATED);
ff->state = FILE_STATE_TRUNCATED;
}

/* tell the logger we're closing up */
Expand Down

0 comments on commit f7dbdb7

Please sign in to comment.