Skip to content

Commit

Permalink
out_chronicle: remove unnecessary variable.
Browse files Browse the repository at this point in the history
If the record is found, a break is issued. If it's not, then it must always log_key_missing++.

Signed-off-by: lecaros <[email protected]>
  • Loading branch information
lecaros committed Oct 4, 2023
1 parent 131e7aa commit 953f149
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/out_chronicle/chronicle.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, uint64_t by
int i;
int map_size;
int check = FLB_FALSE;
int found = FLB_FALSE;
int log_key_missing = 0;
int ret;
struct flb_chronicle *ctx = out_context;
Expand Down Expand Up @@ -568,7 +567,6 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, uint64_t by

if (check == FLB_TRUE) {
if (strncmp(ctx->log_key, key_str, key_str_size) == 0) {
found = FLB_TRUE;

/*
* Copy contents of value into buffer. Necessary to copy
Expand Down

0 comments on commit 953f149

Please sign in to comment.