File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 4040#include <stdio.h>
4141
4242#include "blob.h"
43- #include "blob_db.h"
4443#include "blob_file.h"
4544
45+ #ifdef FLB_HAVE_SQLDB
46+ #include "blob_db.h"
47+ #endif
48+
4649#include "win32_glob.c"
4750
4851/* Define missing GLOB_TILDE if not exists */
@@ -739,7 +742,10 @@ static int in_blob_exit(void *in_context, struct flb_config *config)
739742 return 0 ;
740743 }
741744
745+ #ifdef FLB_HAVE_SQLDB
742746 blob_db_close (ctx );
747+ #endif
748+
743749 blob_file_list_remove_all (ctx );
744750 flb_log_event_encoder_destroy (ctx -> log_encoder );
745751 flb_free (ctx );
Original file line number Diff line number Diff line change 2121#define FLB_IN_BLOB_H
2222
2323#include <fluent-bit/flb_input_plugin.h>
24- #include <fluent-bit/flb_sqldb.h>
2524#include <fluent-bit/flb_log_event_decoder.h>
2625#include <fluent-bit/flb_log_event_encoder.h>
2726
27+ #ifdef FLB_HAVE_SQLDB
28+ #include <fluent-bit/flb_sqldb.h>
29+ #endif
30+
2831#define POST_UPLOAD_ACTION_NONE 0
2932#define POST_UPLOAD_ACTION_DELETE 1
3033#define POST_UPLOAD_ACTION_EMIT_LOG 2
You can’t perform that action at this time.
0 commit comments