Skip to content

Commit

Permalink
revert move
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Oct 15, 2024
1 parent d5e5a94 commit f4fb728
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ struct aws_s3_client *aws_s3_client_new(
}
}

if (aws_mutex_init(&client->synced_data.lock) != AWS_OP_SUCCESS) {
goto on_error;
}

client->buffer_pool = aws_s3_buffer_pool_new(allocator, part_size, mem_limit);

if (client->buffer_pool == NULL) {
Expand All @@ -368,6 +364,10 @@ struct aws_s3_client *aws_s3_client_new(

aws_ref_count_init(&client->ref_count, client, (aws_simple_completion_callback *)s_s3_client_start_destroy);

if (aws_mutex_init(&client->synced_data.lock) != AWS_OP_SUCCESS) {
goto on_error;
}

aws_linked_list_init(&client->synced_data.pending_meta_request_work);
aws_linked_list_init(&client->synced_data.prepared_requests);

Expand Down

0 comments on commit f4fb728

Please sign in to comment.