diff --git a/src/log-filestore.c b/src/log-filestore.c index 39eb7dfdea..69b4a42de7 100644 --- a/src/log-filestore.c +++ b/src/log-filestore.c @@ -670,18 +670,14 @@ static OutputInitResult LogFilestoreLogInitCtx(ConfNode *conf) SCLogInfo("enabling pid as a part of all file names"); } + StatsRegisterGlobalCounter("file_store.open_files", + LogFilestoreOpenFilesCounter); + result.ctx = output_ctx; result.ok = true; SCReturnCT(result, "OutputInitResult"); } - -void LogFilestoreInitConfig(void) -{ - StatsRegisterGlobalCounter("file_store.open_files", LogFilestoreOpenFilesCounter); -} - - void LogFilestoreRegister (void) { OutputRegisterFiledataModule(LOGGER_FILE_STORE, MODULE_NAME, "file", diff --git a/src/suricata.c b/src/suricata.c index 120b5fc2a4..abeda7feaf 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -167,7 +167,6 @@ #include "host-storage.h" #include "util-lua.h" -#include "log-filestore.h" #ifdef HAVE_RUST #include "rust.h" @@ -2206,7 +2205,6 @@ void PreRunInit(const int runmode) DefragInit(); FlowInitConfig(FLOW_QUIET); IPPairInitConfig(FLOW_QUIET); - LogFilestoreInitConfig(); StreamTcpInitConfig(STREAM_VERBOSE); AppLayerParserPostStreamSetup(); AppLayerRegisterGlobalCounters();