Skip to content

Commit 24b685a

Browse files
lint
1 parent 09072af commit 24b685a

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

source/s3_auto_ranged_get.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static bool s_s3_auto_ranged_get_update(
266266
AWS_S3_REQUEST_FLAG_RECORD_RESPONSE_HEADERS |
267267
AWS_S3_REQUEST_FLAG_ALLOCATE_BUFFER_FROM_POOL);
268268
/* Note: our current default logic is to do part 1, discover size and then abort if payload its
269-
* too huge We optimistically reserve part size for it */
269+
* too huge We optimistically reserve part size for it */
270270
request->part_range_start = 0;
271271
request->part_range_end = meta_request->part_size - 1;
272272
++auto_ranged_get->synced_data.num_parts_requested;

source/s3_auto_ranged_put.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ static bool s_s3_auto_ranged_put_update(
637637

638638
s_compute_request_body_size(meta_request, request);
639639

640-
AWS_LOGF_DEBUG(0, "foo %zu %zu %zu", request->content_length,
641-
request->part_range_start, request->part_range_end);
640+
AWS_LOGF_DEBUG(
641+
0, "foo %zu %zu %zu", request->content_length, request->part_range_start, request->part_range_end);
642642

643643
/* If request was previously uploaded, we prepare it to ensure checksums still match,
644644
* but ultimately it gets marked no-op and we don't send it */

source/s3_default_buffer_pool.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,7 @@ struct aws_future_s3_buffer_ticket *aws_s3_default_buffer_pool_reserve(
712712
ticket->forced = true;
713713
ticket->pool = buffer_pool_wrapper;
714714

715-
if (meta.size <= buffer_pool->primary_size_cutoff &&
716-
meta.size >= buffer_pool->primary_size_min_cutoff) {
715+
if (meta.size <= buffer_pool->primary_size_cutoff && meta.size >= buffer_pool->primary_size_min_cutoff) {
717716
ticket->reserved_from = AWS_S3_BUFFER_POOL_RESERVED_FROM_PRIMARY;
718717
} else {
719718
ticket->reserved_from = AWS_S3_BUFFER_POOL_RESERVED_FROM_SECONDARY;

source/s3_meta_request.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,12 +1425,12 @@ static int s_s3_meta_request_incoming_headers(
14251425
}
14261426
if (request->part_range_end != object_range_end) {
14271427
/* In the case where the object size is less than the range requested. It must be return the
1428-
* last part to the end of the object.
1429-
* Note: that when get with part 1 is used we dont know how big the buffer will be. We optimistically allocate
1430-
* part sized buffer, and see if its enough. If its over, the req will get canceled. So in that case skip validation
1431-
* on expected size.
1428+
* last part to the end of the object.
1429+
* Note: that when get with part 1 is used we dont know how big the buffer will be. We
1430+
* optimistically allocate part sized buffer, and see if its enough. If its over, the req will
1431+
* get canceled. So in that case skip validation on expected size.
14321432
*/
1433-
if (request->request_tag != AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_PART_NUMBER_1 &&
1433+
if (request->request_tag != AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_PART_NUMBER_1 &&
14341434
(object_size != object_range_end + 1 || request->part_range_end < object_range_end)) {
14351435
/* Something went wrong if it's matching. Log the error. */
14361436
AWS_LOGF_ERROR(

0 commit comments

Comments
 (0)