diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/format/wts.c')
-rw-r--r-- | src/third_party/wiredtiger/test/format/wts.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/third_party/wiredtiger/test/format/wts.c b/src/third_party/wiredtiger/test/format/wts.c index 27ca5e0ca3b..87b861a69b5 100644 --- a/src/third_party/wiredtiger/test/format/wts.c +++ b/src/third_party/wiredtiger/test/format/wts.c @@ -216,7 +216,8 @@ create_database(const char *home, WT_CONNECTION **connp) ",checkpoint_sync=false" ",error_prefix=\"%s\"" ",operation_timeout_ms=2000" - ",statistics=(all)", + ",statistics=(all)" + ",statistics_log=(json,on_close,wait=5)", GV(CACHE), progname); /* In-memory configuration. */ @@ -284,16 +285,9 @@ create_database(const char *home, WT_CONNECTION **connp) CONFIG_APPEND(p, ",debug_mode=(realloc_malloc=true)"); } - /* - * Run the statistics server and/or maintain statistics in the engine. Sometimes specify a set - * of sources just to exercise that code. - */ - if (GV(STATISTICS_SERVER)) { - if (mmrand(NULL, 0, 20) == 1) - CONFIG_APPEND(p, ",statistics_log=(json,on_close,wait=5,sources=(\"file:\"))"); - else - CONFIG_APPEND(p, ",statistics_log=(json,on_close,wait=5)"); - } + /* Sometimes specify a set of sources just to exercise that code. */ + if (mmrand(NULL, 0, 20) == 1) + CONFIG_APPEND(p, ",statistics_log=(sources=(\"file:\"))"); /* Optional timing stress. */ configure_timing_stress(&p, max); @@ -491,7 +485,8 @@ wts_open(const char *home, WT_CONNECTION **connp, bool verify_metadata) if (enc != NULL) CONFIG_APPEND(p, ",encryption=(name=%s)", enc); - CONFIG_APPEND(p, ",error_prefix=\"%s\",statistics=(all)", progname); + CONFIG_APPEND( + p, ",error_prefix=\"%s\",statistics=(all),statistics_log=(json,on_close,wait=5)", progname); /* Optional timing stress. */ configure_timing_stress(&p, max); |