Fixed minor issue in CompressionTypeSupported()

Summary:
CompressionTypeSupported was returning LZ4_Supported() for
kZSTDNotFinalCompression. This patch changes it to ZSTD_Supported().

Test Plan: make clean all check

Reviewers: rven, anthony, yhchiang, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D46521
main
Andres Noetzli 9 years ago
parent f3f2032c46
commit c66d53feed
  1. 2
      util/compression.h

@ -89,7 +89,7 @@ inline bool CompressionTypeSupported(CompressionType compression_type) {
case kLZ4HCCompression:
return LZ4_Supported();
case kZSTDNotFinalCompression:
return LZ4_Supported();
return ZSTD_Supported();
default:
assert(false);
return false;

Loading…
Cancel
Save