Skip to content

Commit

Permalink
rename response_body.request -> response_body.completed_request
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Aug 24, 2023
1 parent 64f913c commit 6ea1c3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/aws/s3/private/s3_meta_request_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ struct aws_s3_meta_request_event {
} type;

union {
/* data for AWS_S3_META_REQUEST_EVENT_RESPONSE_BODY */
struct {
struct aws_s3_request *request;
struct aws_s3_request *completed_request;
} response_body;

/* data for AWS_S3_META_REQUEST_EVENT_PROGRESS */
struct {
struct aws_s3_meta_request_progress info;
} progress;
Expand Down
4 changes: 2 additions & 2 deletions source/s3_meta_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ void aws_s3_meta_request_stream_response_body_synced(
struct aws_s3_request *next_streaming_request;
while ((next_streaming_request = s_s3_meta_request_body_streaming_pop_next_synced(meta_request)) != NULL) {
struct aws_s3_meta_request_event event = {.type = AWS_S3_META_REQUEST_EVENT_RESPONSE_BODY};
event.u.response_body.request = next_streaming_request; /* */
event.u.response_body.completed_request = next_streaming_request;
aws_s3_meta_request_add_event_for_delivery_synced(meta_request, &event);

++num_streaming_requests;
Expand Down Expand Up @@ -1465,7 +1465,7 @@ static void s_s3_meta_request_event_delivery_task(struct aws_task *task, void *a
switch (event.type) {

case AWS_S3_META_REQUEST_EVENT_RESPONSE_BODY: {
struct aws_s3_request *request = event.u.response_body.request;
struct aws_s3_request *request = event.u.response_body.completed_request;
AWS_ASSERT(meta_request == request->meta_request);
struct aws_byte_cursor response_body = aws_byte_cursor_from_buf(&request->send_data.response_body);

Expand Down

0 comments on commit 6ea1c3f

Please sign in to comment.