From 61311157ff328884418fe2c0fd2b410f054df750 Mon Sep 17 00:00:00 2001 From: Zhongyi Xie Date: Fri, 2 Nov 2018 11:25:06 -0700 Subject: [PATCH] exclude get db property calls from rocksdb_lite (#4619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: fix current failing lite test: > In file included from ./util/testharness.h:15:0, from ./table/mock_table.h:23, from ./db/db_test_util.h:44, from db/db_flush_test.cc:10: db/db_flush_test.cc: In member function ‘virtual void rocksdb::DBFlushTest_ManualFlushFailsInReadOnlyMode_Test::TestBody()’: db/db_flush_test.cc:250:35: error: ‘Properties’ is not a member of ‘rocksdb::DB’ ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBackgroundErrors, ^ make: *** [db/db_flush_test.o] Error 1 Pull Request resolved: https://github.com/facebook/rocksdb/pull/4619 Differential Revision: D12898319 Pulled By: miasantreble fbshipit-source-id: 72de603b1f2e972fc8caa88611798c4e98e348c6 --- db/db_flush_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_flush_test.cc b/db/db_flush_test.cc index deb7355f6..d6bd0f763 100644 --- a/db/db_flush_test.cc +++ b/db/db_flush_test.cc @@ -246,10 +246,12 @@ TEST_F(DBFlushTest, ManualFlushFailsInReadOnlyMode) { fault_injection_env->SetFilesystemActive(false); ASSERT_OK(db_->ContinueBackgroundWork()); dbfull()->TEST_WaitForFlushMemTable(); +#ifndef ROCKSDB_LITE uint64_t num_bg_errors; ASSERT_TRUE(db_->GetIntProperty(DB::Properties::kBackgroundErrors, &num_bg_errors)); ASSERT_GT(num_bg_errors, 0); +#endif // ROCKSDB_LITE // In the bug scenario, triggering another flush would cause the second flush // to hang forever. After the fix we expect it to return an error.