Skip to content

Commit

Permalink
out_s3: fix stale log for max total_file_size
Browse files Browse the repository at this point in the history
Signed-off-by: xiaobaowen <[email protected]>
  • Loading branch information
xiaobaowen committed May 20, 2024
1 parent 41ef155 commit ac504a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ static int cb_s3_init(struct flb_output_instance *ins,
*/
ctx->upload_chunk_size = ctx->file_size;
if (ctx->file_size > MAX_FILE_SIZE_PUT_OBJECT) {
flb_plg_error(ctx->ins, "Max total_file_size is 50M when use_put_object is enabled");
flb_plg_error(ctx->ins, "Max total_file_size is "MAX_FILE_SIZE_PUT_OBJECT_STR" when use_put_object is enabled");
return -1;
}
}
Expand Down
1 change: 1 addition & 0 deletions plugins/out_s3/s3.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

/* Allowed max file size 1 GB for publishing to S3 */
#define MAX_FILE_SIZE_PUT_OBJECT 1000000000
#define MAX_FILE_SIZE_PUT_OBJECT_STR "1G"

#define DEFAULT_UPLOAD_TIMEOUT 3600

Expand Down

0 comments on commit ac504a9

Please sign in to comment.