@@ -25,7 +25,7 @@ BOOST_AUTO_TEST_CASE( ds3_client_create_free ) {
2525 printf (" -----Testing ds3_client create and free-------\n " );
2626
2727 ds3_client* client = get_client ();
28- BOOST_CHECK_EQUAL (client->connection_pool -> ref_count , 1 );
28+ BOOST_CHECK (client->connection_pool != NULL );
2929 ds3_creds_free (client->creds );
3030 ds3_client_free (client);
3131}
@@ -34,10 +34,8 @@ BOOST_AUTO_TEST_CASE( ds3_connection_pool_copy ) {
3434 printf (" -----Testing ds3_copy_client-------\n " );
3535
3636 ds3_client* client = get_client ();
37- BOOST_CHECK_EQUAL (client->connection_pool ->ref_count , 1 );
3837
3938 ds3_client* client_copy = ds3_copy_client (client);
40- BOOST_CHECK_EQUAL (client->connection_pool ->ref_count , 2 );
4139 BOOST_CHECK_EQUAL (client->endpoint ->value , client_copy->endpoint ->value );
4240 if (client->proxy ) {
4341 BOOST_CHECK_EQUAL (client->proxy ->value , client_copy->proxy ->value );
@@ -53,7 +51,7 @@ BOOST_AUTO_TEST_CASE( ds3_connection_pool_copy ) {
5351 ds3_creds_free (client->creds );
5452 ds3_client_free (client);
5553
56- BOOST_CHECK_EQUAL (client_copy->connection_pool -> ref_count , 1 );
54+ BOOST_CHECK (client_copy->connection_pool != NULL );
5755 ds3_creds_free (client_copy->creds );
5856 ds3_client_free (client_copy);
5957}
@@ -63,18 +61,18 @@ BOOST_AUTO_TEST_CASE( create_bucket_with_copied_client ) {
6361
6462 ds3_client* client = get_client ();
6563 ds3_connection_pool* cp = client->connection_pool ;
66- BOOST_CHECK_EQUAL (cp-> ref_count , 1 );
64+ BOOST_CHECK (cp != NULL );
6765
6866 ds3_client* client_copy = ds3_copy_client (client);
69- BOOST_CHECK_EQUAL (cp-> ref_count , 2 );
67+ BOOST_CHECK_EQUAL (cp, client_copy-> connection_pool );
7068
7169 const char * client_bucket_name = " create_bucket_from_original_client" ;
7270 ds3_error* error = create_bucket_with_data_policy (client, client_bucket_name, ids.data_policy_id ->value );
7371 handle_error (error);
7472 clear_bucket (client, client_bucket_name);
7573 ds3_creds_free (client->creds );
7674 ds3_client_free (client);
77- BOOST_CHECK_EQUAL (cp-> ref_count , 1 );
75+ BOOST_CHECK (client_copy-> connection_pool != NULL );
7876
7977 const char * copied_client_bucket_name = " create_bucket_from_copied_client" ;
8078 error = create_bucket_with_data_policy (client_copy, copied_client_bucket_name, ids.data_policy_id ->value );
@@ -162,7 +160,7 @@ BOOST_AUTO_TEST_CASE( bulk_put_200_very_small_files_multithreaded ) {
162160
163161 ds3_master_object_list_response* chunk_response = ensure_available_chunks (client, bulk_response->job_id );
164162
165- GPtrArray* put_objs_args_array = new_put_chunks_threads_args (client, object_name, bucket_name, bulk_response, chunk_response, num_threads, False);
163+ GPtrArray* put_objs_args_array = new_put_chunks_threads_args (client, object_name, NULL , bucket_name, bulk_response, chunk_response, num_threads, False);
166164
167165 GThread* chunks_thread_0 = g_thread_new (" objects_0" , (GThreadFunc)put_chunks_from_file, g_ptr_array_index (put_objs_args_array, 0 ));
168166 GThread* chunks_thread_1 = g_thread_new (" objects_1" , (GThreadFunc)put_chunks_from_file, g_ptr_array_index (put_objs_args_array, 1 ));
@@ -204,7 +202,7 @@ BOOST_AUTO_TEST_CASE( sequential_vs_parallel_xfer ) {
204202
205203 ds3_master_object_list_response* sequential_chunks = ensure_available_chunks (client, mol->job_id );
206204
207- GPtrArray* put_sequential_objs_threads_array = new_put_chunks_threads_args (client, obj_name, sequential_bucket_name, mol, sequential_chunks, 1 , False);
205+ GPtrArray* put_sequential_objs_threads_array = new_put_chunks_threads_args (client, obj_name, NULL , sequential_bucket_name, mol, sequential_chunks, 1 , False);
208206
209207 // capture sequential test start time
210208 clock_gettime (CLOCK_MONOTONIC, &start_time_t );
@@ -238,7 +236,7 @@ BOOST_AUTO_TEST_CASE( sequential_vs_parallel_xfer ) {
238236
239237 ds3_master_object_list_response* parallel_chunks = ensure_available_chunks (client, mol->job_id );
240238
241- GPtrArray* put_parallel_objs_threads_array = new_put_chunks_threads_args (client, obj_name, parallel_bucket_name, mol, parallel_chunks, 4 , False);
239+ GPtrArray* put_parallel_objs_threads_array = new_put_chunks_threads_args (client, obj_name, NULL , parallel_bucket_name, mol, parallel_chunks, 4 , False);
242240
243241 // capture sequential test start time
244242 clock_gettime (CLOCK_MONOTONIC, &start_time_t );
@@ -315,8 +313,8 @@ BOOST_AUTO_TEST_CASE( multiple_client_xfer ) {
315313 ds3_master_object_list_response* client1_chunks = ensure_available_chunks (client1, mol1->job_id );
316314 ds3_master_object_list_response* client2_chunks = ensure_available_chunks (client2, mol2->job_id );
317315
318- GPtrArray* client1_put_objs_args = new_put_chunks_threads_args (client1, obj_name, client1_bucket_name, mol1, client1_chunks, 1 , True);
319- GPtrArray* client2_put_objs_args = new_put_chunks_threads_args (client2, obj_name, client2_bucket_name, mol2, client2_chunks, 1 , True);
316+ GPtrArray* client1_put_objs_args = new_put_chunks_threads_args (client1, obj_name, NULL , client1_bucket_name, mol1, client1_chunks, 1 , True);
317+ GPtrArray* client2_put_objs_args = new_put_chunks_threads_args (client2, obj_name, NULL , client2_bucket_name, mol2, client2_chunks, 1 , True);
320318
321319 // capture sequential test start time
322320 clock_gettime (CLOCK_MONOTONIC, &start_time_t );
@@ -407,9 +405,9 @@ BOOST_AUTO_TEST_CASE( performance_bulk_put ) {
407405 ds3_master_object_list_response* chunks_response2 = ensure_available_chunks (client2, bulk_response2->job_id );
408406 ds3_master_object_list_response* chunks_response3 = ensure_available_chunks (client3, bulk_response3->job_id );
409407
410- GPtrArray* put_perf_objs_threads_array1 = new_put_chunks_threads_args (client1, obj_prefix, bucket_name1, bulk_response1, chunks_response1, 1 , True);
411- GPtrArray* put_perf_objs_threads_array2 = new_put_chunks_threads_args (client2, obj_prefix, bucket_name2, bulk_response2, chunks_response2, 1 , True);
412- GPtrArray* put_perf_objs_threads_array3 = new_put_chunks_threads_args (client3, obj_prefix, bucket_name3, bulk_response3, chunks_response3, 1 , True);
408+ GPtrArray* put_perf_objs_threads_array1 = new_put_chunks_threads_args (client1, obj_prefix, NULL , bucket_name1, bulk_response1, chunks_response1, 1 , True);
409+ GPtrArray* put_perf_objs_threads_array2 = new_put_chunks_threads_args (client2, obj_prefix, NULL , bucket_name2, bulk_response2, chunks_response2, 1 , True);
410+ GPtrArray* put_perf_objs_threads_array3 = new_put_chunks_threads_args (client3, obj_prefix, NULL , bucket_name3, bulk_response3, chunks_response3, 1 , True);
413411
414412 // capture sequential test start time
415413 struct timespec start_time_t , end_time_t ;
0 commit comments