From 617f479266423da2fa1963aa7968fdca57e62c1d Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Mon, 23 Mar 2020 12:59:04 -0700 Subject: [PATCH] Fix LITE build (#6575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Fix LITE build by excluding some unit tests that use features not supported in LITE. ``` db/db_basic_test.cc:1778:8: error: ‘void rocksdb::{anonymous}::TableFileListener::OnTableFileCreated(const rocksdb::TableFileCreationInfo&)’ marked ‘override’, but does not override void OnTableFileCreated(const TableFileCreationInfo& info) override { ^~~~~~~~~~~~~~~~~~ make: *** [db/db_basic_test.o] Error 1 ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/6575 Reviewed By: ltamasi Differential Revision: D20598598 Pulled By: riversand963 fbshipit-source-id: 367f7cb2500360ad57030b138a94c0f731a04339 --- db/db_basic_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_basic_test.cc b/db/db_basic_test.cc index f67f04425..b69326457 100644 --- a/db/db_basic_test.cc +++ b/db/db_basic_test.cc @@ -1772,6 +1772,7 @@ TEST_F(DBBasicTest, IncrementalRecoveryNoCorrupt) { } } +#ifndef ROCKSDB_LITE namespace { class TableFileListener : public EventListener { public: @@ -1885,6 +1886,7 @@ TEST_F(DBBasicTest, SkipWALIfMissingTableFiles) { iter->Next(); ASSERT_FALSE(iter->Valid()); } +#endif // !ROCKSDB_LITE class DBBasicTestWithParallelIO : public DBTestBase,