exclude test CompactFilesShouldTriggerAutoCompaction from ROCKSDB_LITE (#4950)

Summary:
This will fix the following build error:

> db/db_test.cc: In member function ‘virtual void rocksdb::DBTest_CompactFilesShouldTriggerAutoCompaction_Test::TestBody()’:
> db/db_test.cc:5462:8: error: ‘class rocksdb::DB’ has no member named ‘GetColumnFamilyMetaData’
>    db_->GetColumnFamilyMetaData(db_->DefaultColumnFamily(), &cf_meta_data);
> db/db_test.cc:5490:8: error: ‘class rocksdb::DB’ has no member named ‘GetColumnFamilyMetaData’
>    db_->GetColumnFamilyMetaData(db_->DefaultColumnFamily(), &cf_meta_data);
> db/db_test.cc:5499:8: error: ‘class rocksdb::DB’ has no member named ‘GetColumnFamilyMetaData’
>    db_->GetColumnFamilyMetaData(db_->DefaultColumnFamily(), &cf_meta_data);
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4950

Differential Revision: D13965378

Pulled By: miasantreble

fbshipit-source-id: a975435476fe555b1cd9d5da263ee3da3acdea56
This commit is contained in:
Zhongyi Xie 2019-02-05 16:51:16 -08:00 committed by Facebook Github Bot
parent 00ed41daee
commit 71cae59a99

View File

@ -5440,6 +5440,7 @@ TEST_F(DBTest, AutomaticConflictsWithManualCompaction) {
dbfull()->TEST_WaitForCompact(); dbfull()->TEST_WaitForCompact();
} }
#ifndef ROCKSDB_LITE
TEST_F(DBTest, CompactFilesShouldTriggerAutoCompaction) { TEST_F(DBTest, CompactFilesShouldTriggerAutoCompaction) {
Options options = CurrentOptions(); Options options = CurrentOptions();
options.max_background_compactions = 1; options.max_background_compactions = 1;
@ -5500,6 +5501,7 @@ TEST_F(DBTest, CompactFilesShouldTriggerAutoCompaction) {
ASSERT_LE(cf_meta_data.levels[0].files.size(), ASSERT_LE(cf_meta_data.levels[0].files.size(),
options.level0_file_num_compaction_trigger); options.level0_file_num_compaction_trigger);
} }
#endif // ROCKSDB_LITE
// Github issue #595 // Github issue #595
// Large write batch with column families // Large write batch with column families