From a4ea345b042454354bcf5cae128c5cee58b62a69 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Wed, 4 May 2016 17:20:52 -0700 Subject: [PATCH] Fixing lite build Summary: Fixing lite build broke in unit test. `FilesPerLevel()` depends on `DB::GetProperty()`, which lite build doesn't support. Test Plan: OPT=-DROCKSDB_LITE make check -j64 Reviewers: sdong Reviewed By: sdong Subscribers: andrewkr, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D57651 --- db/db_iterator_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/db_iterator_test.cc b/db/db_iterator_test.cc index 7635900e8d..25fdfabd8d 100644 --- a/db/db_iterator_test.cc +++ b/db/db_iterator_test.cc @@ -1557,7 +1557,9 @@ TEST_F(DBIteratorTest, ReadAhead) { Put(Key(i), value); } ASSERT_OK(Flush()); +#ifndef ROCKSDB_LITE ASSERT_EQ("1,1,1", FilesPerLevel()); +#endif // !ROCKSDB_LITE env->random_read_bytes_counter_ = 0; options.statistics->setTickerCount(NO_FILE_OPENS, 0);