Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
PettitWesley committed Sep 9, 2022
1 parent 920d823 commit 6128362
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,11 @@ static int cb_s3_init(struct flb_output_instance *ins,
return -1;
}

if (ctx->ins->total_limit_size != -1 && ctx->ins->total_limit_size > 0) {
flb_plg_info(ctx->ins, "storage.total_limit_size=%zu", ctx->ins->total_limit_size);
/* the check against -1 is works here because size_t is unsigned
* and (int) -1 == unsigned max value
* Fluent Bit uses -1 (which becomes max value) to indicate undefined
*/
if (ctx->ins->total_limit_size != -1) {
flb_plg_warn(ctx->ins, "Please use 'store_dir_limit_size' with s3 output instead of 'storage.total_limit_size'. "
"S3 has its own buffer files located in the store_dir.");
}
Expand Down

0 comments on commit 6128362

Please sign in to comment.