Skip to content

Commit 614f772

Browse files
simplify
Signed-off-by: deivid.garcia.garcia <deivid.garcia.garcia@gmail.com>
1 parent 9649e22 commit 614f772

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

plugins/in_tail/tail_file.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,17 +1281,6 @@ int flb_tail_file_append(char *path, struct stat *st, int mode,
12811281
file->offset = offset;
12821282
}
12831283

1284-
if (strlen(path) >= 3 &&
1285-
strcasecmp(&path[strlen(path) - 3], ".gz") == 0) {
1286-
file->decompression_context =
1287-
flb_decompression_context_create(FLB_COMPRESSION_ALGORITHM_GZIP,
1288-
ctx->buf_max_size);
1289-
1290-
if (file->decompression_context == NULL) {
1291-
goto error;
1292-
}
1293-
}
1294-
12951284
/*
12961285
* Duplicate string into 'file' structure, the called function
12971286
* take cares to resolve real-name of the file in case we are
@@ -1509,7 +1498,7 @@ int flb_tail_file_append(char *path, struct stat *st, int mode,
15091498
flb_free(file);
15101499
}
15111500
close(fd);
1512-
1501+
15131502
return -1;
15141503
}
15151504

0 commit comments

Comments
 (0)