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
main
Yueh-Hsuan Chiang 9 years ago
parent 760e9a94de
commit eade498bda
  1. 3
      include/rocksdb/utilities/write_batch_with_index.h
  2. 3
      utilities/write_batch_with_index/write_batch_with_index.cc
  3. 4
      utilities/write_batch_with_index/write_batch_with_index_internal.cc
  4. 3
      utilities/write_batch_with_index/write_batch_with_index_internal.h
  5. 11
      utilities/write_batch_with_index/write_batch_with_index_test.cc

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

@ -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 <memory>
@ -638,3 +640,4 @@ Status WriteBatchWithIndex::GetFromBatchAndDB(DB* db,
}
} // namespace rocksdb
#endif // !ROCKSDB_LITE

@ -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

@ -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 <limits>
@ -94,3 +96,4 @@ class WriteBatchWithIndexInternal {
};
} // namespace rocksdb
#endif // !ROCKSDB_LITE

@ -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 <memory>
#include <map>
@ -1370,3 +1371,13 @@ int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#else
#include <stdio.h>
int main() {
fprintf(stderr, "SKIPPED\n");
return 0;
}
#endif // !ROCKSDB_LITE

Loading…
Cancel
Save