mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Disable CompressLevelCompaction() if Zlib is not supported
Summary: CompressLevelCompaction() depends on Zlib. We should skip it when zlib is not present. Test Plan: `make check` without zlib Reviewers: yhchiang Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D40401
This commit is contained in:
parent
df719d4964
commit
bf03f59c11
|
@ -13053,6 +13053,9 @@ TEST_F(DBTest, EmptyCompactedDB) {
|
|||
}
|
||||
|
||||
TEST_F(DBTest, CompressLevelCompaction) {
|
||||
if (!Zlib_Supported()) {
|
||||
return;
|
||||
}
|
||||
Options options = CurrentOptions();
|
||||
options.compaction_style = kCompactionStyleLevel;
|
||||
options.write_buffer_size = 100 << 10; // 100KB
|
||||
|
|
Loading…
Reference in a new issue