output/filedata: don't call file close

Will be reenabled after file API is updated.
pull/8421/head
Victor Julien 3 years ago
parent 71bc9e75f5
commit f7dbdb7631

@ -162,7 +162,7 @@ void OutputFiledataLogFfc(ThreadVars *tv, OutputFiledataLoggerThreadData *td, Pa
* close the logger(s) */ * close the logger(s) */
if (FileDataSize(ff) == ff->content_stored && (file_trunc || file_close)) { if (FileDataSize(ff) == ff->content_stored && (file_trunc || file_close)) {
if (ff->state < FILE_STATE_CLOSED) { if (ff->state < FILE_STATE_CLOSED) {
FileCloseFilePtr(ff, NULL, 0, FILE_TRUNCATED); ff->state = FILE_STATE_TRUNCATED;
} }
file_flags |= OUTPUT_FILEDATA_FLAG_CLOSE; file_flags |= OUTPUT_FILEDATA_FLAG_CLOSE;
CallLoggers(tv, store, p, ff, txv, tx_id, NULL, 0, file_flags, dir); CallLoggers(tv, store, p, ff, txv, tx_id, NULL, 0, file_flags, dir);
@ -173,7 +173,7 @@ void OutputFiledataLogFfc(ThreadVars *tv, OutputFiledataLoggerThreadData *td, Pa
/* if file needs to be closed or truncated, inform /* if file needs to be closed or truncated, inform
* loggers */ * loggers */
if ((file_close || file_trunc) && ff->state < FILE_STATE_CLOSED) { 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 */ /* tell the logger we're closing up */

Loading…
Cancel
Save