Skip to content

Commit

Permalink
out_forward: add missing ra check(#4511)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and edsiper committed Jan 22, 2022
1 parent 3ac4070 commit 266427b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/out_forward/forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ static int config_set_properties(struct flb_upstream_node *node,
}

#ifdef FLB_HAVE_RECORD_ACCESSOR
if (fc->compress != COMPRESS_NONE && fc->ra_static == FLB_FALSE) {
if (fc->compress != COMPRESS_NONE &&
(fc->ra_tag && fc->ra_static == FLB_FALSE) ) {
flb_plg_error(ctx->ins, "compress mode %s is incompatible with dynamic "
"tags", tmp);
return -1;
Expand Down

0 comments on commit 266427b

Please sign in to comment.