diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/rwlock/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/rwlock/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/rwlock/main.c b/src/third_party/wiredtiger/test/csuite/rwlock/main.c index 7dabeff7ddc..4d32cdaff8b 100644 --- a/src/third_party/wiredtiger/test/csuite/rwlock/main.c +++ b/src/third_party/wiredtiger/test/csuite/rwlock/main.c @@ -30,8 +30,8 @@ /* * JIRA ticket reference: HELP-4355 Test rwlock collapse under load. */ -#define MAX_THREADS 1000 -#define READS_PER_WRITE 10000 +#define MAX_THREADS WT_THOUSAND +#define READS_PER_WRITE (10 * WT_THOUSAND) #define CHECK_CORRECTNESS 1 @@ -58,7 +58,7 @@ main(int argc, char *argv[]) opts = &_opts; memset(opts, 0, sizeof(*opts)); opts->nthreads = 100; - opts->nops = 1000000; /* per thread */ + opts->nops = WT_MILLION; /* per thread */ testutil_check(testutil_parse_opts(argc, argv, opts)); running = true; @@ -148,7 +148,7 @@ thread_rwlock(void *arg) __wt_readunlock(session, &rwlock); #endif - if (opts->verbose && i % 10000 == 0) { + if (opts->verbose && i % (10 * WT_THOUSAND) == 0) { printf("%s", session->id == 20 ? ".\n" : "."); fflush(stdout); } |