diff --git a/include/rocksdb/utilities/write_batch_with_index.h b/include/rocksdb/utilities/write_batch_with_index.h index 1da4421f3a8166fc907d5bfcddd0923d115bde57..22e7253c171a19991f8a9b6bb94736d6bf1f74cc 100644 --- a/include/rocksdb/utilities/write_batch_with_index.h +++ b/include/rocksdb/utilities/write_batch_with_index.h @@ -9,6 +9,7 @@ // A WriteBatchWithIndex with a binary searchable index built for all the keys // inserted. +#ifndef ROCKSDB_LITE #pragma once #include @@ -162,3 +163,5 @@ class WriteBatchWithIndex : public WriteBatchBase { }; } // namespace rocksdb + +#endif // !ROCKSDB_LITE diff --git a/utilities/write_batch_with_index/write_batch_with_index.cc b/utilities/write_batch_with_index/write_batch_with_index.cc index 5c8292e45107a11a640b3e18f92162a411a88152..0da3df61ed37e16a3e9c7b73fe6d1fe4dfa9713a 100644 --- a/utilities/write_batch_with_index/write_batch_with_index.cc +++ b/utilities/write_batch_with_index/write_batch_with_index.cc @@ -3,6 +3,8 @@ // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. +#ifndef ROCKSDB_LITE + #include "rocksdb/utilities/write_batch_with_index.h" #include @@ -638,3 +640,4 @@ Status WriteBatchWithIndex::GetFromBatchAndDB(DB* db, } } // namespace rocksdb +#endif // !ROCKSDB_LITE diff --git a/utilities/write_batch_with_index/write_batch_with_index_internal.cc b/utilities/write_batch_with_index/write_batch_with_index_internal.cc index 4191e84e08b254809378faec0bc9deb0f423dfb4..2c0033ce1dc59d851ae334a25ed0dd0e82dff075 100644 --- a/utilities/write_batch_with_index/write_batch_with_index_internal.cc +++ b/utilities/write_batch_with_index/write_batch_with_index_internal.cc @@ -3,6 +3,8 @@ // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. +#ifndef ROCKSDB_LITE + #include "db/column_family.h" #include "db/merge_context.h" #include "db/merge_helper.h" @@ -241,3 +243,5 @@ WriteBatchWithIndexInternal::Result WriteBatchWithIndexInternal::GetFromBatch( } } // namespace rocksdb + +#endif // !ROCKSDB_LITE diff --git a/utilities/write_batch_with_index/write_batch_with_index_internal.h b/utilities/write_batch_with_index/write_batch_with_index_internal.h index a98ddd67e6af3b6638fb2543c69093fa359cc706..d1a4ffc91403e4bb4b1e65f680353c0a8be24b5d 100644 --- a/utilities/write_batch_with_index/write_batch_with_index_internal.h +++ b/utilities/write_batch_with_index/write_batch_with_index_internal.h @@ -3,6 +3,8 @@ // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. +#ifndef ROCKSDB_LITE + #pragma once #include @@ -94,3 +96,4 @@ class WriteBatchWithIndexInternal { }; } // namespace rocksdb +#endif // !ROCKSDB_LITE diff --git a/utilities/write_batch_with_index/write_batch_with_index_test.cc b/utilities/write_batch_with_index/write_batch_with_index_test.cc index 488d1b70acbd00be728699c3ff303b984f3ec45e..70337f885293ffcb66419718d441f0c604b37212 100644 --- a/utilities/write_batch_with_index/write_batch_with_index_test.cc +++ b/utilities/write_batch_with_index/write_batch_with_index_test.cc @@ -7,6 +7,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +#ifndef ROCKSDB_LITE #include #include @@ -1370,3 +1371,13 @@ int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } + +#else +#include + +int main() { + fprintf(stderr, "SKIPPED\n"); + return 0; +} + +#endif // !ROCKSDB_LITE