From da61f348d37e45a0cfd70893499d9f6625111b4e Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Mon, 31 Oct 2016 16:03:24 -0700 Subject: [PATCH] Print compression and Fast CRC support info as Header level Summary: Currently the compression suppport and fast CRC support information is printed as info level. They should be in the same level as options, which is header level. Also add ZSTD to this printing. Closes https://github.com/facebook/rocksdb/pull/1448 Differential Revision: D4106608 Pulled By: yiwu-arbug fbshipit-source-id: cb9a076 --- db/db_impl.cc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index db8e9aad5..5c99a11bd 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -285,16 +285,13 @@ CompressionType GetCompressionFlush( } void DumpSupportInfo(Logger* logger) { - Log(InfoLogLevel::INFO_LEVEL, logger, "Compression algorithms supported:"); - Log(InfoLogLevel::INFO_LEVEL, logger, "\tSnappy supported: %d", - Snappy_Supported()); - Log(InfoLogLevel::INFO_LEVEL, logger, "\tZlib supported: %d", - Zlib_Supported()); - Log(InfoLogLevel::INFO_LEVEL, logger, "\tBzip supported: %d", - BZip2_Supported()); - Log(InfoLogLevel::INFO_LEVEL, logger, "\tLZ4 supported: %d", LZ4_Supported()); - Log(InfoLogLevel::INFO_LEVEL, logger, "Fast CRC32 supported: %d", - crc32c::IsFastCrc32Supported()); + Header(logger, "Compression algorithms supported:"); + Header(logger, "\tSnappy supported: %d", Snappy_Supported()); + Header(logger, "\tZlib supported: %d", Zlib_Supported()); + Header(logger, "\tBzip supported: %d", BZip2_Supported()); + Header(logger, "\tLZ4 supported: %d", LZ4_Supported()); + Header(logger, "\tZSTD supported: %d", ZSTD_Supported()); + Header(logger, "Fast CRC32 supported: %d", crc32c::IsFastCrc32Supported()); } } // namespace