Block utilities/write_batch_with_index in ROCKSDB_LITE

Summary:
Block utilities/write_batch_with_index in ROCKSDB_LITE as we
don't include anly utilities in ROCKSDB_LITE

Test Plan: write_batch_with_index_test

Reviewers: rven, anthony, kradhakrishnan, IslamAbdelRahman, igor, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D40347
This commit is contained in:
Yueh-Hsuan Chiang 2015-06-18 15:54:05 -07:00
parent 760e9a94de
commit eade498bda
5 changed files with 24 additions and 0 deletions

View File

@ -9,6 +9,7 @@
// A WriteBatchWithIndex with a binary searchable index built for all the keys // A WriteBatchWithIndex with a binary searchable index built for all the keys
// inserted. // inserted.
#ifndef ROCKSDB_LITE
#pragma once #pragma once
#include <string> #include <string>
@ -162,3 +163,5 @@ class WriteBatchWithIndex : public WriteBatchBase {
}; };
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE

View File

@ -3,6 +3,8 @@
// LICENSE file in the root directory of this source tree. An additional grant // 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. // 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 "rocksdb/utilities/write_batch_with_index.h"
#include <memory> #include <memory>
@ -638,3 +640,4 @@ Status WriteBatchWithIndex::GetFromBatchAndDB(DB* db,
} }
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE

View File

@ -3,6 +3,8 @@
// LICENSE file in the root directory of this source tree. An additional grant // 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. // of patent rights can be found in the PATENTS file in the same directory.
#ifndef ROCKSDB_LITE
#include "db/column_family.h" #include "db/column_family.h"
#include "db/merge_context.h" #include "db/merge_context.h"
#include "db/merge_helper.h" #include "db/merge_helper.h"
@ -241,3 +243,5 @@ WriteBatchWithIndexInternal::Result WriteBatchWithIndexInternal::GetFromBatch(
} }
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE

View File

@ -3,6 +3,8 @@
// LICENSE file in the root directory of this source tree. An additional grant // 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. // of patent rights can be found in the PATENTS file in the same directory.
#ifndef ROCKSDB_LITE
#pragma once #pragma once
#include <limits> #include <limits>
@ -94,3 +96,4 @@ class WriteBatchWithIndexInternal {
}; };
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE

View File

@ -7,6 +7,7 @@
// Use of this source code is governed by a BSD-style license that can be // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef ROCKSDB_LITE
#include <memory> #include <memory>
#include <map> #include <map>
@ -1370,3 +1371,13 @@ int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
#else
#include <stdio.h>
int main() {
fprintf(stderr, "SKIPPED\n");
return 0;
}
#endif // !ROCKSDB_LITE