Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_s3: fix stale log for max total_file_size #8808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading