Skip to content

Commit 8b249fc

Browse files
committed
out_s3: clarify comment about sending chunks
Signed-off-by: Anuj Singh <singholt@amazon.com>
1 parent 876d6e8 commit 8b249fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/out_s3/s3.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static int cb_s3_init(struct flb_output_instance *ins,
928928

929929
/*
930930
* S3 must ALWAYS use sync mode
931-
* In the timer thread we do a mk_list_foreach_safe on the queue of uplaods and chunks
931+
* In the timer thread we do a mk_list_foreach_safe on the queue of uploads and chunks
932932
* Iterating over those lists is not concurrent safe. If a flush call ran at the same time
933933
* And deleted an item from the list, this could cause a crash/corruption.
934934
*/
@@ -1779,7 +1779,7 @@ static void cb_s3_upload(struct flb_config *config, void *data)
17791779
chunk = fsf->data;
17801780

17811781
if (now < (chunk->create_time + ctx->upload_timeout + ctx->retry_time)) {
1782-
continue; /* Only send chunks which have timed out */
1782+
continue; /* Only send chunks which haven't timed out */
17831783
}
17841784

17851785
/* Locked chunks are being processed, skip */

0 commit comments

Comments
 (0)