summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-01-27 14:23:33 -0500
committerKeith Bostic <keith@wiredtiger.com>2016-01-27 14:23:33 -0500
commit549bef2c3cd6ffe626bd2f022c644252d490e88e (patch)
tree8de60ddb907885a05ca9f0371bbe98f39d72758b
parent2efbae141ff650ebf90383faa5bea519e8be1c86 (diff)
downloadmongo-549bef2c3cd6ffe626bd2f022c644252d490e88e.tar.gz
WT-60: big endian support
Don't specify a value for logging_compression if logging isn't configured, it's just confusing.
-rw-r--r--test/format/config.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/format/config.c b/test/format/config.c
index 866e210e556..4a73dee21ee 100644
--- a/test/format/config.c
+++ b/test/format/config.c
@@ -244,15 +244,17 @@ config_compression(const char *conf_name)
const char *cstr;
char confbuf[128];
+ if (config_is_perm(conf_name))
+ return;
+
/*
- * Compression: choose something if compression wasn't specified,
- * otherwise confirm the appropriate shared library is available.
- * We used to verify that the libraries existed but that's no longer
- * robust, since it's possible to build compression libraries into
- * the WiredTiger library.
+ * Compression: choose something if compression wasn't specified. We
+ * used to verify the shared libraries existed but that's no longer
+ * robust, since it's possible to build compression libraries into the
+ * WiredTiger library.
*/
- if (!config_is_perm(conf_name)) {
- cstr = "none";
+ cstr = "none";
+ if (strcmp(conf_name, "logging_compression") != 0 || g.c_logging != 0)
switch (mmrand(NULL, 1, 20)) {
case 1: case 2: case 3: case 4: /* 20% no compression */
break;
@@ -279,10 +281,8 @@ config_compression(const char *conf_name)
break;
}
- (void)snprintf(confbuf, sizeof(confbuf), "%s=%s", conf_name,
- cstr);
- config_single(confbuf, 0);
- }
+ (void)snprintf(confbuf, sizeof(confbuf), "%s=%s", conf_name, cstr);
+ config_single(confbuf, 0);
}
/*