Skip to content

Commit c7cbdd0

Browse files
author
Nigel Stewart
committed
in_tail: Optional compile-time dependency on SQLlite
1 parent 92c2c01 commit c7cbdd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/in_tail/tail_fs_stat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ static int tail_fs_check(struct flb_input_instance *i_ins,
143143
memcpy(&fst->st, &st, sizeof(struct stat));
144144

145145
/* Update offset in database file */
146+
#ifdef FLB_HAVE_SQLDB
146147
if (ctx->db) {
147148
flb_tail_db_file_offset(file, ctx);
148149
}
150+
#endif
149151
}
150152

151153
if (file->offset < st.st_size) {

0 commit comments

Comments
 (0)