Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Dec 2, 2023
1 parent f95d8f5 commit d104c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/s3_auto_ranged_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ static bool s_s3_auto_ranged_get_update(
auto_ranged_get->synced_data.head_object_sent = true;
}
} else if (auto_ranged_get->synced_data.num_parts_requested == 0) {
request->discovers_object_size = true;
/* Try to download the firstPart of the object */
struct aws_s3_buffer_pool_ticket *ticket =
aws_s3_buffer_pool_reserve(meta_request->client->buffer_pool, meta_request->part_size);
Expand Down Expand Up @@ -204,6 +203,7 @@ static bool s_s3_auto_ranged_get_update(
request->part_range_start = 0;
request->part_range_end = meta_request->part_size - 1; /* range-end is inclusive */
}
request->discovers_object_size = true;
request->ticket = ticket;
++auto_ranged_get->synced_data.num_parts_requested;
}
Expand Down

0 comments on commit d104c32

Please sign in to comment.