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
This commit is contained in:
parent
f9eb56791a
commit
da61f348d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user