1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-18030 waiting_threads-t is disabled

enabled. updated to use mysql_* pthread wrappers. reduced the
number of iterations to finish in mtr-appropriate time
This commit is contained in:
Sergei Golubchik
2025-07-16 23:19:01 +02:00
parent aedc65fe10
commit a8eeffb0a3
4 changed files with 48 additions and 51 deletions

View File

@@ -91,7 +91,7 @@ pthread_handler_t test_lf_alloc(void *arg)
lf_alloc_free(pins, node2);
}
lf_alloc_put_pins(pins);
pthread_mutex_lock(&mutex);
mysql_mutex_lock(&mutex);
bad+= y;
if (--N == 0)
@@ -102,7 +102,7 @@ pthread_handler_t test_lf_alloc(void *arg)
bad|= lf_allocator.mallocs - lf_alloc_pool_count(&lf_allocator);
#endif
}
pthread_mutex_unlock(&mutex);
mysql_mutex_unlock(&mutex);
if (with_my_thread_init)
my_thread_end();
@@ -157,7 +157,7 @@ pthread_handler_t test_lf_hash(void *arg)
}
}
lf_hash_put_pins(pins);
pthread_mutex_lock(&mutex);
mysql_mutex_lock(&mutex);
bad+= sum;
inserts+= ins;
@@ -168,7 +168,7 @@ pthread_handler_t test_lf_hash(void *arg)
lf_hash.size, inserts, scans);
bad|= lf_hash.count;
}
pthread_mutex_unlock(&mutex);
mysql_mutex_unlock(&mutex);
if (with_my_thread_init)
my_thread_end();
return 0;