提交 eade498b 编写于 作者: Y Yueh-Hsuan Chiang

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
上级 760e9a94
...@@ -9,6 +9,7 @@ ...@@ -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 { ...@@ -162,3 +163,5 @@ class WriteBatchWithIndex : public WriteBatchBase {
}; };
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE
...@@ -3,6 +3,8 @@ ...@@ -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, ...@@ -638,3 +640,4 @@ Status WriteBatchWithIndex::GetFromBatchAndDB(DB* db,
} }
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE
...@@ -3,6 +3,8 @@ ...@@ -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( ...@@ -241,3 +243,5 @@ WriteBatchWithIndexInternal::Result WriteBatchWithIndexInternal::GetFromBatch(
} }
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE
...@@ -3,6 +3,8 @@ ...@@ -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 { ...@@ -94,3 +96,4 @@ class WriteBatchWithIndexInternal {
}; };
} // namespace rocksdb } // namespace rocksdb
#endif // !ROCKSDB_LITE
...@@ -7,6 +7,7 @@ ...@@ -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) { ...@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册