summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-02-25 10:13:28 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-02-25 10:13:28 +1100
commit5dd31d182c3319b1827f502caa852d39d36d881a (patch)
tree434c606c9a56e4a8c1c54fd51eef69b1ca7aae40
parent749a9fb339c0ff46bacd02876e1b90c541fd0f7b (diff)
downloadmongo-5dd31d182c3319b1827f502caa852d39d36d881a.tar.gz
WT-2427 Have wtperf use builtin compression when configured.
-rw-r--r--bench/wtperf/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bench/wtperf/config.c b/bench/wtperf/config.c
index 5af2e977a25..2544bbd371c 100644
--- a/bench/wtperf/config.c
+++ b/bench/wtperf/config.c
@@ -159,13 +159,19 @@ config_compress(CONFIG *cfg)
cfg->compress_ext = NULL;
cfg->compress_table = NULL;
} else if (strcmp(s, "lz4") == 0) {
+#ifndef HAVE_BUILTIN_EXTENSION_LZ4
cfg->compress_ext = LZ4_EXT;
+#endif
cfg->compress_table = LZ4_BLK;
} else if (strcmp(s, "snappy") == 0) {
+#ifndef HAVE_BUILTIN_EXTENSION_SNAPPY
cfg->compress_ext = SNAPPY_EXT;
+#endif
cfg->compress_table = SNAPPY_BLK;
} else if (strcmp(s, "zlib") == 0) {
+#ifndef HAVE_BUILTIN_EXTENSION_ZLIB
cfg->compress_ext = ZLIB_EXT;
+#endif
cfg->compress_table = ZLIB_BLK;
} else {
fprintf(stderr,