Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Nov 21, 2023
1 parent bb5c139 commit a6c69c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/s3_buffer_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ struct aws_s3_buffer_pool *aws_s3_buffer_pool_new(

buffer_pool->base_allocator = allocator;
buffer_pool->chunk_size = chunk_size;
buffer_pool->block_size = adjusted_mem_lim;
buffer_pool->block_size = s_chunks_per_block * chunk_size;
/* Somewhat arbitrary number.
* Tries to balance between how many allocations use buffer and buffer space
* being wasted. */
buffer_pool->primary_size_cutoff = chunk_size * 4;
buffer_pool->mem_limit = mem_limit - s_buffer_pool_reserved_mem;
buffer_pool->mem_limit = adjusted_mem_lim;
int mutex_error = aws_mutex_init(&buffer_pool->mutex);
AWS_FATAL_ASSERT(mutex_error == AWS_OP_SUCCESS);

Expand Down

0 comments on commit a6c69c2

Please sign in to comment.