diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-03-18 12:24:25 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-03-18 12:24:25 -0400 |
commit | f39b5a2b9772b293986400623277a842bfa679ea (patch) | |
tree | 7aa0251f263368cfb0ed0b6501898b04163c5b22 /bench | |
parent | ab36692f3bd63cd6f58cad88218a0ce73de5d4a6 (diff) | |
download | mongo-f39b5a2b9772b293986400623277a842bfa679ea.tar.gz |
Add support for LZ4.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/config.c | 3 | ||||
-rw-r--r-- | bench/wtperf/wtperf.h | 3 | ||||
-rw-r--r-- | bench/wtperf/wtperf_opt.i | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/bench/wtperf/config.c b/bench/wtperf/config.c index 4c072b85c70..e27b4861bed 100644 --- a/bench/wtperf/config.c +++ b/bench/wtperf/config.c @@ -149,6 +149,9 @@ config_compress(CONFIG *cfg) } else if (strcmp(s, "bzip") == 0) { cfg->compress_ext = BZIP_EXT; cfg->compress_table = BZIP_BLK; + } else if (strcmp(s, "lz4") == 0) { + cfg->compress_ext = LZ4_EXT; + cfg->compress_table = LZ4_BLK; } else if (strcmp(s, "snappy") == 0) { cfg->compress_ext = SNAPPY_EXT; cfg->compress_table = SNAPPY_BLK; diff --git a/bench/wtperf/wtperf.h b/bench/wtperf/wtperf.h index 976847e9a21..201623c7859 100644 --- a/bench/wtperf/wtperf.h +++ b/bench/wtperf/wtperf.h @@ -72,6 +72,9 @@ typedef struct __config_thread CONFIG_THREAD; #define BZIP_BLK BLKCMP_PFX "bzip2" #define BZIP_EXT \ EXT_PFX EXTPATH "bzip2/.libs/libwiredtiger_bzip2.so" EXT_SFX +#define LZ4_BLK BLKCMP_PFX "lz4" +#define LZ4_EXT \ + EXT_PFX EXTPATH "lz4/.libs/libwiredtiger_lz4.so" EXT_SFX #define SNAPPY_BLK BLKCMP_PFX "snappy" #define SNAPPY_EXT \ EXT_PFX EXTPATH "snappy/.libs/libwiredtiger_snappy.so" EXT_SFX diff --git a/bench/wtperf/wtperf_opt.i b/bench/wtperf/wtperf_opt.i index 58d56e512ce..705b95a7450 100644 --- a/bench/wtperf/wtperf_opt.i +++ b/bench/wtperf/wtperf_opt.i @@ -97,7 +97,7 @@ DEF_OPT_AS_CONFIG_STRING(conn_config, "create", DEF_OPT_AS_BOOL(compact, 0, "post-populate compact for LSM merging activity") DEF_OPT_AS_STRING(compression, "none", "compression extension. Allowed configuration values are: " - "'none', 'bzip', 'snappy', 'zlib'") + "'none', 'bzip', 'lz4', 'snappy', 'zlib'") DEF_OPT_AS_BOOL(create, 1, "do population phase; false to use existing database") DEF_OPT_AS_UINT32(database_count, 1, |