diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-24 16:01:42 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-24 16:01:42 +1100 |
commit | 2ad51c26243d9cc7f0c66a3e7852777c373ecc52 (patch) | |
tree | 781ef934a7f4c18831e651bfcc2eabf1e0ac6cd1 /test/format/wts.c | |
parent | fc15500891348375dd261e1bacb2c3d796dbec8c (diff) | |
parent | 66d4c3786e8de724232ce3f2edacc44ff74a4a05 (diff) | |
download | mongodb-3.0-rc10.tar.gz |
Merge branch 'develop' into mongodb-3.0mongodb-3.0-rc10
Diffstat (limited to 'test/format/wts.c')
-rw-r--r-- | test/format/wts.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/format/wts.c b/test/format/wts.c index b36655aacbe..0875f3900f8 100644 --- a/test/format/wts.c +++ b/test/format/wts.c @@ -121,8 +121,22 @@ wts_open(const char *home, int set_api, WT_CONNECTION **connp) if (g.c_data_extend) p += snprintf(p, REMAIN(p, end), ",file_extend=(data=8MB)"); - p += snprintf(p, REMAIN(p, end), - ",statistics=(%s)", g.c_statistics ? "fast" : "none"); + /* + * Run the statistics server and/or maintain statistics in the engine. + * Sometimes specify a set of sources just to exercise that code. + */ + if (g.c_statistics_server) { + if (MMRAND(0, 5) == 1 && + memcmp(g.uri, "file:", strlen("file:")) == 0) + p += snprintf(p, REMAIN(p, end), + ",statistics=(fast)" + ",statistics_log=(wait=5,sources=(\"file:\"))"); + else + p += snprintf(p, REMAIN(p, end), + ",statistics=(fast),statistics_log=(wait=5)"); + } else + p += snprintf(p, REMAIN(p, end), + ",statistics=(%s)", g.c_statistics ? "fast" : "none"); /* Extensions. */ p += snprintf(p, REMAIN(p, end), |