Commit c78f92a0 authored by Chip Turner's avatar Chip Turner Committed by Facebook Github Bot

zstd is no longer in beta -- s/ZSTD_BETA/ZSTD/g

Summary:
itshappening

Need to override unit test failures after repeated landing failures unrelated
to the change.

Reviewed By: yfeldblum

Differential Revision: D3803301

fbshipit-source-id: b6581e3d2ff6baba57eb0f61b890a61107118bf7
parent 22aad953
......@@ -946,7 +946,7 @@ std::unique_ptr<IOBuf> LZMA2Codec::doUncompress(const IOBuf* data,
#ifdef FOLLY_HAVE_LIBZSTD
/**
* ZSTD_BETA compression
* ZSTD compression
*/
class ZSTDCodec final : public Codec {
public:
......@@ -968,7 +968,7 @@ std::unique_ptr<Codec> ZSTDCodec::create(int level, CodecType type) {
}
ZSTDCodec::ZSTDCodec(int level, CodecType type) : Codec(type) {
DCHECK(type == CodecType::ZSTD_BETA);
DCHECK(type == CodecType::ZSTD);
switch (level) {
case COMPRESSION_LEVEL_FASTEST:
level_ = 1;
......
......@@ -73,11 +73,9 @@ enum class CodecType {
LZMA2_VARINT_SIZE = 7,
/**
* Use ZSTD_BETA compression.
* This format is not yet final; please do not rely on it for anything other
* than testing purposes yet.
* Use ZSTD compression.
*/
ZSTD_BETA = 8,
ZSTD = 8,
/**
* Use gzip compression. This is the same compression algorithm as ZLIB but
......
......@@ -128,7 +128,7 @@ TEST(CompressionTestNeedsUncompressedLength, Simple) {
EXPECT_TRUE(getCodec(CodecType::LZMA2)->needsUncompressedLength());
EXPECT_FALSE(getCodec(CodecType::LZMA2_VARINT_SIZE)
->needsUncompressedLength());
EXPECT_TRUE(getCodec(CodecType::ZSTD_BETA)->needsUncompressedLength());
EXPECT_TRUE(getCodec(CodecType::ZSTD)->needsUncompressedLength());
EXPECT_FALSE(getCodec(CodecType::GZIP)->needsUncompressedLength());
}
......@@ -183,7 +183,7 @@ INSTANTIATE_TEST_CASE_P(
CodecType::LZ4_VARINT_SIZE,
CodecType::LZMA2,
CodecType::LZMA2_VARINT_SIZE,
CodecType::ZSTD_BETA,
CodecType::ZSTD,
CodecType::GZIP)));
class CompressionVarintTest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment