Skip to content

Commit 446bdd9

Browse files
fix build
1 parent 3df068d commit 446bdd9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/s3_default_buffer_pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static const size_t s_max_impact_of_forced_buffers_on_memory_limit_as_percentage
9393
* primary min cut off. below this number buffers are not allocated from primary and instead use
9494
* secondary.
9595
*/
96-
static const size_t s_primary_min_cutoff = KB_TO_BYTES(128);
96+
static const size_t s_primary_min_cutoff = KB_TO_BYTES(512);
9797

9898
/*
9999
* Sets n bits at position starting with LSB.

tests/s3_data_plane_tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4131,7 +4131,7 @@ static int s_test_s3_round_trip_default_get_fc_helper(
41314131
.object_path_override = object_path,
41324132
},
41334133
};
4134-
if (algorithm == AWS_SCA_CRC32 && algorithm == AWS_SCA_CRC32C && algorithm == AWS_SCA_CRC64NVME) {
4134+
if (algorithm == AWS_SCA_CRC32 || algorithm == AWS_SCA_CRC32C || algorithm == AWS_SCA_CRC64NVME) {
41354135
/* Full object checksums doesn't support SHA or XXHASH. */
41364136
put_options.put_options.full_object_checksum = full_object_checksum;
41374137
}

tests/s3_default_buffer_pool_tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ AWS_TEST_CASE(
644644
static int s_test_s3_buffer_pool_reserve_tiny_chunks(struct aws_allocator *allocator, void *ctx) {
645645
(void)ctx;
646646
const size_t chunk_size = MB_TO_BYTES(8);
647-
const size_t small_size = KB_TO_BYTES(1);
647+
const size_t small_size = KB_TO_BYTES(128);
648648
const size_t mem_limit = GB_TO_BYTES(1);
649649
struct aws_s3_buffer_pool *buffer_pool = aws_s3_default_buffer_pool_new(
650650
allocator, (struct aws_s3_buffer_pool_config){.part_size = chunk_size, .memory_limit = mem_limit});

0 commit comments

Comments
 (0)