From e27f60b1c867b0b60dbff26d7a35777e6bb9f14b Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Wed, 15 Nov 2017 19:30:35 -0800 Subject: [PATCH] distinguish kZSTDNotFinalCompression in compression string Summary: This confused some users who were getting compression type from the logs. Closes https://github.com/facebook/rocksdb/pull/3153 Differential Revision: D6294964 Pulled By: ajkr fbshipit-source-id: 3c813376d33682dc6ccafc9a78df1a2e2528985e --- util/compression.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/compression.h b/util/compression.h index 48b831168..6dd942435 100644 --- a/util/compression.h +++ b/util/compression.h @@ -145,8 +145,9 @@ inline std::string CompressionTypeToString(CompressionType compression_type) { case kXpressCompression: return "Xpress"; case kZSTD: - case kZSTDNotFinalCompression: return "ZSTD"; + case kZSTDNotFinalCompression: + return "ZSTDNotFinal"; default: assert(false); return "";