diff options
author | sdong <siying.d@fb.com> | 2015-12-08 16:33:10 -0800 |
---|---|---|
committer | sdong <siying.d@fb.com> | 2015-12-08 16:33:26 -0800 |
commit | ea11923550802a3eeebe81f2cc4a9a44cda32121 (patch) | |
tree | a499e35bcbba44aa1fa2e817cfb1a413c5d82fdb /util | |
parent | b60cb88c7fa0b7f2d82fa974d2f4a106bda53142 (diff) |
Upgrade to ZSTD 0.4.2
Summary: Change to call the new compression function.
Test Plan: build and run db_bench with the compression to make sure it compresses.
Reviewers: anthony, rven, kradhakrishnan, IslamAbdelRahman, igor, yhchiang
Reviewed By: yhchiang
Subscribers: leveldb, dhruba
Differential Revision: https://reviews.facebook.net/D51603
Diffstat (limited to 'util')
-rw-r--r-- | util/compression.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/compression.h b/util/compression.h index dd4d0135f..954c43dbe 100644 --- a/util/compression.h +++ b/util/compression.h @@ -620,7 +620,7 @@ inline bool ZSTD_Compress(const CompressionOptions& opts, const char* input, size_t compressBound = ZSTD_compressBound(length); output->resize(static_cast<size_t>(output_header_len + compressBound)); size_t outlen = ZSTD_compress(&(*output)[output_header_len], compressBound, - input, length); + input, length, 1 /* level */); if (outlen == 0) { return false; } |