-
Notifications
You must be signed in to change notification settings - Fork 41
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
S3 receive filepath #449
S3 receive filepath #449
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #449 +/- ##
==========================================
- Coverage 89.45% 89.29% -0.17%
==========================================
Files 20 20
Lines 6080 6127 +47
==========================================
+ Hits 5439 5471 +32
- Misses 641 656 +15
|
source/s3_meta_request.c
Outdated
fclose(meta_request->recv_file); | ||
meta_request->recv_file = NULL; | ||
if (finish_result.error_code && meta_request->recv_file_delete_on_failure) { | ||
/* Ignore the failure. Attempt to delete */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trivial: I was confused by "ignore the failure". I was like "but we ARE paying attention to the failure! It's delete_on_failure, and the operation is failing, so delete!". Maybe you meant that we're ignoring any errors from aws_file_delete()???
/* Ignore the failure. Attempt to delete */ |
source/s3_meta_request.c
Outdated
@@ -1781,7 +1843,21 @@ static void s_s3_meta_request_event_delivery_task(struct aws_task *task, void *a | |||
if (meta_request->meta_request_level_running_response_sum) { | |||
aws_checksum_update(meta_request->meta_request_level_running_response_sum, &response_body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this isn't part of your PR. But I see 😬 we're not checking aws_checksum_update() for error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix & ship
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.