diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-04 10:29:22 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-02-04 10:29:22 +1100 |
commit | e2d514132d6197787cff6f6a4f9e2adf0b8ae65b (patch) | |
tree | 801fcf78a3ae0e29345e876056761dbf96b7268b | |
parent | f676ff7f106c50febab56723b6fbba1f2a412a2c (diff) | |
download | mongo-e2d514132d6197787cff6f6a4f9e2adf0b8ae65b.tar.gz |
Free the populate threads in wtperf.
-rw-r--r-- | bench/wtperf/wtperf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 2f55596c7f4..5554f2e564e 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -852,12 +852,15 @@ execute_populate(CONFIG *cfg) /* * Move popthreads aside to narrow possible race with the monitor - * thread. + * thread. The latency tracking code also requires that popthreads be + * NULL when the populate phase is finished, to know that the workload + * phase has started. */ popth = cfg->popthreads; cfg->popthreads = NULL; - if ((ret = - stop_threads(cfg, cfg->populate_threads, popth)) != 0) + ret = stop_threads(cfg, cfg->populate_threads, popth); + free(popth); + if (ret != 0) return (ret); /* Report if any worker threads didn't finish. */ |