WT-60: big endian support

Don't specify a value for logging_compression if logging isn't configured,
it's just confusing.
This commit is contained in:
Keith Bostic
2016-01-27 14:23:33 -05:00
parent 2efbae141f
commit 549bef2c3c

View File

@@ -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);
}
/*