diff options
author | Vamsi Krishna <vamsi.krishna@mongodb.com> | 2017-11-22 11:15:46 +1100 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-11-22 11:15:46 +1100 |
commit | 1c83554346552d9fc47d809a5328995261617896 (patch) | |
tree | 1d705b33698c74bd43ceba4db6f0afb56ca5913c /src | |
parent | 8b883fee6aea6b0addf8210f31551633372ee226 (diff) | |
download | mongo-1c83554346552d9fc47d809a5328995261617896.tar.gz |
WT-3758 Turn on snappy compression for lookaside file (#3797)
Enabled by default when snappy compression is available.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/btmem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/btmem.h b/src/include/btmem.h index 745618ae756..e10c74e0203 100644 --- a/src/include/btmem.h +++ b/src/include/btmem.h @@ -182,9 +182,16 @@ struct __wt_ovfl_reuse { * makes the lookaside table's value more likely to overflow the page size when * the row-store key is relatively large. */ +#ifdef HAVE_BUILTIN_EXTENSION_SNAPPY +#define WT_LAS_CONFIG \ + "key_format=" WT_UNCHECKED_STRING(QIQu) \ + ",value_format=" WT_UNCHECKED_STRING(QuBu) \ + ",block_compressor=snappy" +#else #define WT_LAS_CONFIG \ "key_format=" WT_UNCHECKED_STRING(QIQu) \ ",value_format=" WT_UNCHECKED_STRING(QuBu) +#endif /* * WT_PAGE_LOOKASIDE -- |