mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
[t:5040] closes #5040 Add drd suppression code for performance counters in test
git-svn-id: file:///svn/toku/tokudb@44361 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
e79b55ebba
commit
638755867e
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
#elif defined(HAVE_SYS_MALLOC_H)
|
||||
# include <sys/malloc.h>
|
||||
#endif
|
||||
#include <valgrind/drd.h>
|
||||
|
||||
#if defined(HAVE_RANDOM_R)
|
||||
static inline int32_t
|
||||
|
@ -1063,6 +1064,7 @@ static int run_workers(
|
|||
worker_extra[i].operation_lock = &rwlock;
|
||||
worker_extra[i].operation_lock_mutex = &mutex;
|
||||
XCALLOC_N((int) NUM_OPERATION_TYPES, worker_extra[i].counters);
|
||||
DRD_IGNORE_VAR(worker_extra[i].counters);
|
||||
CHK(toku_pthread_create(&tids[i], NULL, worker, &worker_extra[i]));
|
||||
if (verbose)
|
||||
printf("%lu created\n", (unsigned long) tids[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue