Skip to content

Commit

Permalink
remove allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Dec 20, 2023
1 parent 5521490 commit 3854912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions source/s3_auto_ranged_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ struct aws_s3_meta_request *aws_s3_meta_request_auto_ranged_get_new(
auto_ranged_get->initial_message_has_range_header = aws_http_headers_has(headers, g_range_header_name);
if (auto_ranged_get->initial_message_has_range_header) {
aws_s3_parse_request_range_header(
allocator,
headers,
&auto_ranged_get->initial_message_has_start_range,
&auto_ranged_get->initial_message_has_end_range,
Expand Down Expand Up @@ -255,9 +254,9 @@ static bool s_s3_auto_ranged_get_update(

uint64_t part_range_start = 0;
uint64_t first_part_size = meta_request->part_size;

if (auto_ranged_get->initial_message_has_start_range) {
// TODO: should we align the first part? Was it getting aligned before?
// TODO: should we align the first part? Was it getting aligned before?
if (auto_ranged_get->initial_message_has_range_header) {
AWS_ASSERT(auto_ranged_get->initial_message_has_start_range);
part_range_start = auto_ranged_get->initial_object_range_start;

if (auto_ranged_get->initial_message_has_end_range) {
Expand Down
1 change: 0 additions & 1 deletion source/s3_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ int aws_s3_parse_content_length_response_header(

int aws_s3_parse_request_range_header(
struct aws_http_headers *request_headers,

bool *out_initial_message_has_start_range,
bool *out_initial_message_has_end_range,
uint64_t *out_initial_start_range,
Expand Down

0 comments on commit 3854912

Please sign in to comment.