Skip to content

Commit

Permalink
log_event_decoder: set FLB_EVENT_DECODER_ERROR_INSUFFICIENT_DATA as a…
Browse files Browse the repository at this point in the history
… default

Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
  • Loading branch information
nokute78 committed Jun 30, 2023
1 parent 2760a23 commit f70462c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion include/fluent-bit/flb_log_event_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#define FLB_EVENT_DECODER_ERROR_WRONG_BODY_TYPE -10
#define FLB_EVENT_DECODER_ERROR_DESERIALIZATION_FAILURE -11
#define FLB_EVENT_DECODER_ERROR_INSUFFICIENT_DATA -12
#define FLB_EVENT_DECODER_ERROR_NO_INCOMING_DATA -13

#define FLB_LOG_EVENT_EXPECTED_ROOT_ELEMENT_COUNT 2
#define FLB_LOG_EVENT_EXPECTED_HEADER_ELEMENT_COUNT 2
Expand Down
2 changes: 1 addition & 1 deletion src/flb_log_event_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void flb_log_event_decoder_reset(struct flb_log_event_decoder *context,
context->offset = 0;
context->buffer = input_buffer;
context->length = input_length;
context->last_result = FLB_EVENT_DECODER_ERROR_NO_INCOMING_DATA;
context->last_result = FLB_EVENT_DECODER_ERROR_INSUFFICIENT_DATA;

msgpack_unpacked_destroy(&context->unpacked_event);
msgpack_unpacked_init(&context->unpacked_event);
Expand Down

0 comments on commit f70462c

Please sign in to comment.