summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-05-14 08:48:24 -0400
committerKeith Bostic <keith@wiredtiger.com>2013-05-14 08:48:24 -0400
commit73a0c8a509188e97cf1eaf0155448091716499de (patch)
tree3488de99afa1fa9748b7645ee566effb18fd360a /test
parenta317ae0d34f5ac63cdb482a0f280af12ba19ebe5 (diff)
downloadmongo-73a0c8a509188e97cf1eaf0155448091716499de.tar.gz
Change file_extend syntax from file_extend=(type=[data,log],size=XXX)
to file_extend=(data=XXX,log=XXX). Add period testing of file_extend to test/format.
Diffstat (limited to 'test')
-rw-r--r--test/format/config.h4
-rw-r--r--test/format/format.h1
-rw-r--r--test/format/wts.c5
3 files changed, 9 insertions, 1 deletions
diff --git a/test/format/config.h b/test/format/config.h
index 8a282642cb0..ef5b04363a5 100644
--- a/test/format/config.h
+++ b/test/format/config.h
@@ -82,6 +82,10 @@ static CONFIG c[] = {
"type of compression (none | bzip | lzo | raw | snappy)",
0, C_IGNORE|C_STRING, 1, 5, NULL, &g.c_compression },
+ { "data_extend",
+ "if data files are extended", /* 5% */
+ 0, C_BOOL, 5, 0, &g.c_data_extend, NULL },
+
{ "data_source",
"type of data source to create (file | kvs | lsm | table)",
0, C_IGNORE | C_STRING, 0, 0, NULL, &g.c_data_source },
diff --git a/test/format/format.h b/test/format/format.h
index 331b856ee3d..1871e425497 100644
--- a/test/format/format.h
+++ b/test/format/format.h
@@ -122,6 +122,7 @@ typedef struct {
u_int c_cache;
char *c_compression;
char *c_config_open;
+ u_int c_data_extend;
char *c_data_source;
u_int c_delete_pct;
u_int c_dictionary;
diff --git a/test/format/wts.c b/test/format/wts.c
index 78a83b0738e..03ea7de4190 100644
--- a/test/format/wts.c
+++ b/test/format/wts.c
@@ -75,13 +75,16 @@ wts_open(void)
* override the standard configuration.
*/
snprintf(config, sizeof(config),
- "create,sync=false,cache_size=%" PRIu32 "MB,"
+ "create,"
+ "sync=false,cache_size=%" PRIu32 "MB,"
"error_prefix=\"%s\","
+ "%s,"
"extensions="
"[\"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\"],"
"%s,%s",
g.c_cache,
g.progname,
+ g.c_data_extend ? "file_extend=(data=8MB)," : "",
REVERSE_PATH,
access(BZIP_PATH, R_OK) == 0 ? BZIP_PATH : "",
access(LZO_PATH, R_OK) == 0 ? LZO_PATH : "",