diff options
Diffstat (limited to 'test/fops/t.c')
-rw-r--r-- | test/fops/t.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/fops/t.c b/test/fops/t.c index edce91c6d09..769d3562f0f 100644 --- a/test/fops/t.c +++ b/test/fops/t.c @@ -28,6 +28,7 @@ #include "thread.h" WT_CONNECTION *conn; /* WiredTiger connection */ +pthread_rwlock_t single; /* Single thread */ u_int nops; /* Operations */ const char *uri; /* Object */ const char *config; /* Object config */ @@ -55,16 +56,16 @@ main(int argc, char *argv[]) const char *desc; const char *config; } *cp, configs[] = { - { "file:__wt", NULL, NULL }, - { "table:__wt", NULL, NULL }, + { "file:wt", NULL, NULL }, + { "table:wt", NULL, NULL }, /* Configure for a modest cache size. */ #define LSM_CONFIG "lsm=(chunk_size=1m,merge_max=2),leaf_page_max=4k" - { "lsm:__wt", NULL, LSM_CONFIG }, - { "table:__wt", " [lsm]", "type=lsm," LSM_CONFIG }, + { "lsm:wt", NULL, LSM_CONFIG }, + { "table:wt", " [lsm]", "type=lsm," LSM_CONFIG }, { NULL, NULL, NULL } }; u_int nthreads; - int ch, cnt, runs; + int ch, cnt, ret, runs; char *config_open; if ((progname = strrchr(argv[0], '/')) == NULL) @@ -72,6 +73,9 @@ main(int argc, char *argv[]) else ++progname; + if ((ret = pthread_rwlock_init(&single, NULL)) != 0) + die(ret, "pthread_rwlock_init: single"); + config_open = NULL; nops = 1000; nthreads = 10; |