Remove unused includes (#7604)

Summary:
This is a PR generated **semi-automatically** by an internal tool to remove unused includes and `using` statements.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7604

Test Plan: make check

Reviewed By: ajkr

Differential Revision: D24579392

Pulled By: riversand963

fbshipit-source-id: c4bfa6c6b08da1de186690d37eb73d8fff45aecd
main
Yanqin Jin 4 years ago committed by Facebook GitHub Bot
parent 99a0305bb8
commit 394210f280
  1. 1
      cache/lru_cache.cc
  2. 4
      db/c.cc
  3. 1
      db/compaction/compaction_job_stats_test.cc
  4. 1
      db/compaction/compaction_picker_test.cc
  5. 1
      db/comparator_db_test.cc
  6. 1
      db/corruption_test.cc
  7. 1
      db/dbformat_test.cc
  8. 1
      db/fault_injection_test.cc
  9. 1
      db/filename_test.cc
  10. 1
      db/listener_test.cc
  11. 4
      db/obsolete_files_test.cc
  12. 1
      db/periodic_work_scheduler.cc
  13. 2
      db/plain_table_db_test.cc
  14. 1
      db/version_builder_test.cc
  15. 1
      db/version_set_test.cc
  16. 1
      env/env.cc
  17. 7
      env/env_posix.cc
  18. 5
      env/fs_posix.cc
  19. 1
      env/io_posix.cc
  20. 1
      file/filename.cc
  21. 1
      logging/auto_roll_logger_test.cc
  22. 1
      logging/event_logger.cc
  23. 1
      monitoring/persistent_stats_history.cc
  24. 1
      monitoring/statistics.cc
  25. 2
      port/port_posix.cc
  26. 1
      table/block_based/block.cc
  27. 2
      table/block_based/block_based_table_builder.cc
  28. 2
      table/block_based/block_based_table_reader.cc
  29. 1
      table/block_based/partitioned_filter_block_test.cc
  30. 1
      table/cuckoo/cuckoo_table_reader_test.cc
  31. 1
      table/format.cc
  32. 1
      test_util/sync_point.cc
  33. 1
      tools/db_bench_tool.cc
  34. 1
      tools/ldb_cmd.cc
  35. 3
      tools/trace_analyzer_tool.cc
  36. 1
      util/bloom_test.cc
  37. 1
      util/comparator.cc
  38. 1
      util/dynamic_bloom_test.cc
  39. 1
      util/string_util.cc
  40. 2
      util/xxhash.cc
  41. 1
      utilities/blob_db/blob_db_test.cc
  42. 1
      utilities/cassandra/cassandra_format_test.cc
  43. 1
      utilities/cassandra/cassandra_functional_test.cc
  44. 1
      utilities/cassandra/cassandra_serialize_test.cc
  45. 3
      utilities/merge_operators/sortlist.cc
  46. 1
      utilities/merge_operators/string_append/stringappend_test.cc
  47. 1
      utilities/transactions/optimistic_transaction_test.cc

@ -11,7 +11,6 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string> #include <string>
#include "util/mutexlock.h" #include "util/mutexlock.h"

@ -60,7 +60,6 @@ using ROCKSDB_NAMESPACE::ColumnFamilyDescriptor;
using ROCKSDB_NAMESPACE::ColumnFamilyHandle; using ROCKSDB_NAMESPACE::ColumnFamilyHandle;
using ROCKSDB_NAMESPACE::ColumnFamilyOptions; using ROCKSDB_NAMESPACE::ColumnFamilyOptions;
using ROCKSDB_NAMESPACE::CompactionFilter; using ROCKSDB_NAMESPACE::CompactionFilter;
using ROCKSDB_NAMESPACE::CompactionFilterContext;
using ROCKSDB_NAMESPACE::CompactionFilterFactory; using ROCKSDB_NAMESPACE::CompactionFilterFactory;
using ROCKSDB_NAMESPACE::CompactionOptionsFIFO; using ROCKSDB_NAMESPACE::CompactionOptionsFIFO;
using ROCKSDB_NAMESPACE::CompactRangeOptions; using ROCKSDB_NAMESPACE::CompactRangeOptions;
@ -82,7 +81,6 @@ using ROCKSDB_NAMESPACE::LiveFileMetaData;
using ROCKSDB_NAMESPACE::Logger; using ROCKSDB_NAMESPACE::Logger;
using ROCKSDB_NAMESPACE::MemoryUtil; using ROCKSDB_NAMESPACE::MemoryUtil;
using ROCKSDB_NAMESPACE::MergeOperator; using ROCKSDB_NAMESPACE::MergeOperator;
using ROCKSDB_NAMESPACE::MergeOperators;
using ROCKSDB_NAMESPACE::NewBloomFilterPolicy; using ROCKSDB_NAMESPACE::NewBloomFilterPolicy;
using ROCKSDB_NAMESPACE::NewGenericRateLimiter; using ROCKSDB_NAMESPACE::NewGenericRateLimiter;
using ROCKSDB_NAMESPACE::NewLRUCache; using ROCKSDB_NAMESPACE::NewLRUCache;
@ -115,10 +113,8 @@ using ROCKSDB_NAMESPACE::WriteBatch;
using ROCKSDB_NAMESPACE::WriteBatchWithIndex; using ROCKSDB_NAMESPACE::WriteBatchWithIndex;
using ROCKSDB_NAMESPACE::WriteOptions; using ROCKSDB_NAMESPACE::WriteOptions;
using std::shared_ptr;
using std::vector; using std::vector;
using std::unordered_set; using std::unordered_set;
using std::map;
extern "C" { extern "C" {

@ -24,7 +24,6 @@
#include "db/write_batch_internal.h" #include "db/write_batch_internal.h"
#include "env/mock_env.h" #include "env/mock_env.h"
#include "file/filename.h" #include "file/filename.h"
#include "logging/logging.h"
#include "memtable/hash_linklist_rep.h" #include "memtable/hash_linklist_rep.h"
#include "monitoring/statistics.h" #include "monitoring/statistics.h"
#include "monitoring/thread_status_util.h" #include "monitoring/thread_status_util.h"

@ -12,7 +12,6 @@
#include "db/compaction/compaction_picker_level.h" #include "db/compaction/compaction_picker_level.h"
#include "db/compaction/compaction_picker_universal.h" #include "db/compaction/compaction_picker_universal.h"
#include "logging/logging.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"
#include "test_util/testutil.h" #include "test_util/testutil.h"
#include "util/string_util.h" #include "util/string_util.h"

@ -17,7 +17,6 @@
#include "util/string_util.h" #include "util/string_util.h"
#include "utilities/merge_operators.h" #include "utilities/merge_operators.h"
using std::unique_ptr;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
namespace { namespace {

@ -9,7 +9,6 @@
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>

@ -8,7 +8,6 @@
// 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.
#include "db/dbformat.h" #include "db/dbformat.h"
#include "logging/logging.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -16,7 +16,6 @@
#include "db/version_set.h" #include "db/version_set.h"
#include "env/mock_env.h" #include "env/mock_env.h"
#include "file/filename.h" #include "file/filename.h"
#include "logging/logging.h"
#include "rocksdb/cache.h" #include "rocksdb/cache.h"
#include "rocksdb/db.h" #include "rocksdb/db.h"
#include "rocksdb/env.h" #include "rocksdb/env.h"

@ -10,7 +10,6 @@
#include "file/filename.h" #include "file/filename.h"
#include "db/dbformat.h" #include "db/dbformat.h"
#include "logging/logging.h"
#include "port/port.h" #include "port/port.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"

@ -10,7 +10,6 @@
#include "db/version_set.h" #include "db/version_set.h"
#include "db/write_batch_internal.h" #include "db/write_batch_internal.h"
#include "file/filename.h" #include "file/filename.h"
#include "logging/logging.h"
#include "memtable/hash_linklist_rep.h" #include "memtable/hash_linklist_rep.h"
#include "monitoring/statistics.h" #include "monitoring/statistics.h"
#include "rocksdb/cache.h" #include "rocksdb/cache.h"

@ -28,10 +28,6 @@
#include "test_util/testutil.h" #include "test_util/testutil.h"
#include "util/string_util.h" #include "util/string_util.h"
using std::cerr;
using std::cout;
using std::endl;
using std::flush;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -6,7 +6,6 @@
#include "db/periodic_work_scheduler.h" #include "db/periodic_work_scheduler.h"
#include "db/db_impl/db_impl.h" #include "db/db_impl/db_impl.h"
#include "util/cast_util.h"
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -16,7 +16,6 @@
#include "db/version_set.h" #include "db/version_set.h"
#include "db/write_batch_internal.h" #include "db/write_batch_internal.h"
#include "file/filename.h" #include "file/filename.h"
#include "logging/logging.h"
#include "rocksdb/cache.h" #include "rocksdb/cache.h"
#include "rocksdb/compaction_filter.h" #include "rocksdb/compaction_filter.h"
#include "rocksdb/db.h" #include "rocksdb/db.h"
@ -39,7 +38,6 @@
#include "util/string_util.h" #include "util/string_util.h"
#include "utilities/merge_operators.h" #include "utilities/merge_operators.h"
using std::unique_ptr;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
class PlainTableKeyDecoderTest : public testing::Test {}; class PlainTableKeyDecoderTest : public testing::Test {};

@ -11,7 +11,6 @@
#include "db/version_edit.h" #include "db/version_edit.h"
#include "db/version_set.h" #include "db/version_set.h"
#include "logging/logging.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"
#include "test_util/testutil.h" #include "test_util/testutil.h"
#include "util/string_util.h" #include "util/string_util.h"

@ -11,7 +11,6 @@
#include "db/db_impl/db_impl.h" #include "db/db_impl/db_impl.h"
#include "db/log_writer.h" #include "db/log_writer.h"
#include "logging/logging.h"
#include "table/block_based/block_based_table_factory.h" #include "table/block_based/block_based_table_factory.h"
#include "table/mock_table.h" #include "table/mock_table.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"

1
env/env.cc vendored

@ -15,7 +15,6 @@
#include "memory/arena.h" #include "memory/arena.h"
#include "options/db_options.h" #include "options/db_options.h"
#include "port/port.h" #include "port/port.h"
#include "port/sys_time.h"
#include "rocksdb/options.h" #include "rocksdb/options.h"
#include "rocksdb/utilities/object_registry.h" #include "rocksdb/utilities/object_registry.h"
#include "util/autovector.h" #include "util/autovector.h"

7
env/env_posix.cc vendored

@ -16,9 +16,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(OS_LINUX)
#include <linux/fs.h>
#endif
#if defined(ROCKSDB_IOURING_PRESENT) #if defined(ROCKSDB_IOURING_PRESENT)
#include <liburing.h> #include <liburing.h>
#endif #endif
@ -27,13 +24,10 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h> #include <sys/stat.h>
#if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID) #if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID)
#include <sys/statfs.h> #include <sys/statfs.h>
#include <sys/syscall.h>
#include <sys/sysmacros.h>
#endif #endif
#include <sys/statvfs.h> #include <sys/statvfs.h>
#include <sys/time.h> #include <sys/time.h>
@ -58,7 +52,6 @@
#include "env/composite_env_wrapper.h" #include "env/composite_env_wrapper.h"
#include "env/io_posix.h" #include "env/io_posix.h"
#include "logging/logging.h"
#include "logging/posix_logger.h" #include "logging/posix_logger.h"
#include "monitoring/iostats_context_imp.h" #include "monitoring/iostats_context_imp.h"
#include "monitoring/thread_status_updater.h" #include "monitoring/thread_status_updater.h"

5
env/fs_posix.cc vendored

@ -16,9 +16,6 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#if defined(OS_LINUX)
#include <linux/fs.h>
#endif
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
@ -29,7 +26,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID) #if defined(OS_LINUX) || defined(OS_SOLARIS) || defined(OS_ANDROID)
#include <sys/statfs.h> #include <sys/statfs.h>
#include <sys/syscall.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif
#include <sys/statvfs.h> #include <sys/statvfs.h>
@ -52,7 +48,6 @@
#include "env/composite_env_wrapper.h" #include "env/composite_env_wrapper.h"
#include "env/io_posix.h" #include "env/io_posix.h"
#include "logging/logging.h"
#include "logging/posix_logger.h" #include "logging/posix_logger.h"
#include "monitoring/iostats_context_imp.h" #include "monitoring/iostats_context_imp.h"
#include "monitoring/thread_status_updater.h" #include "monitoring/thread_status_updater.h"

1
env/io_posix.cc vendored

@ -27,7 +27,6 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef OS_LINUX #ifdef OS_LINUX
#include <sys/statfs.h> #include <sys/statfs.h>
#include <sys/syscall.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif
#include "monitoring/iostats_context_imp.h" #include "monitoring/iostats_context_imp.h"

@ -13,7 +13,6 @@
#include <stdio.h> #include <stdio.h>
#include <vector> #include <vector>
#include "file/writable_file_writer.h" #include "file/writable_file_writer.h"
#include "logging/logging.h"
#include "rocksdb/env.h" #include "rocksdb/env.h"
#include "test_util/sync_point.h" #include "test_util/sync_point.h"
#include "util/stop_watch.h" #include "util/stop_watch.h"

@ -7,7 +7,6 @@
#ifndef ROCKSDB_LITE #ifndef ROCKSDB_LITE
#include "logging/auto_roll_logger.h" #include "logging/auto_roll_logger.h"
#include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>

@ -10,7 +10,6 @@
#include <sstream> #include <sstream>
#include <string> #include <string>
#include "logging/logging.h"
#include "util/string_util.h" #include "util/string_util.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -12,7 +12,6 @@
#include <string> #include <string>
#include <utility> #include <utility>
#include "db/db_impl/db_impl.h" #include "db/db_impl/db_impl.h"
#include "port/likely.h"
#include "util/string_util.h" #include "util/string_util.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -8,7 +8,6 @@
#include <algorithm> #include <algorithm>
#include <cinttypes> #include <cinttypes>
#include <cstdio> #include <cstdio>
#include "port/likely.h"
#include "rocksdb/statistics.h" #include "rocksdb/statistics.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -21,11 +21,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>
#include <cstdlib> #include <cstdlib>
#include "logging/logging.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -15,7 +15,6 @@
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include "logging/logging.h"
#include "monitoring/perf_context_imp.h" #include "monitoring/perf_context_imp.h"
#include "port/port.h" #include "port/port.h"
#include "port/stack_trace.h" #include "port/stack_trace.h"

@ -21,7 +21,6 @@
#include "db/dbformat.h" #include "db/dbformat.h"
#include "index_builder.h" #include "index_builder.h"
#include "port/lang.h"
#include "rocksdb/cache.h" #include "rocksdb/cache.h"
#include "rocksdb/comparator.h" #include "rocksdb/comparator.h"
@ -56,7 +55,6 @@ namespace ROCKSDB_NAMESPACE {
extern const std::string kHashIndexPrefixesBlock; extern const std::string kHashIndexPrefixesBlock;
extern const std::string kHashIndexPrefixesMetadataBlock; extern const std::string kHashIndexPrefixesMetadataBlock;
typedef BlockBasedTableOptions::IndexType IndexType;
// Without anonymous namespace here, we fail the warning -Wmissing-prototypes // Without anonymous namespace here, we fail the warning -Wmissing-prototypes
namespace { namespace {

@ -62,7 +62,6 @@
#include "util/crc32c.h" #include "util/crc32c.h"
#include "util/stop_watch.h" #include "util/stop_watch.h"
#include "util/string_util.h" #include "util/string_util.h"
#include "util/xxhash.h"
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
@ -70,7 +69,6 @@ extern const uint64_t kBlockBasedTableMagicNumber;
extern const std::string kHashIndexPrefixesBlock; extern const std::string kHashIndexPrefixesBlock;
extern const std::string kHashIndexPrefixesMetadataBlock; extern const std::string kHashIndexPrefixesMetadataBlock;
typedef BlockBasedTable::IndexReader IndexReader;
// Found that 256 KB readahead size provides the best performance, based on // Found that 256 KB readahead size provides the best performance, based on
// experiments, for auto readahead. Experiment data is in PR #3282. // experiments, for auto readahead. Experiment data is in PR #3282.

@ -12,7 +12,6 @@
#include "table/block_based/filter_policy_internal.h" #include "table/block_based/filter_policy_internal.h"
#include "index_builder.h" #include "index_builder.h"
#include "logging/logging.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"
#include "test_util/testutil.h" #include "test_util/testutil.h"
#include "util/coding.h" #include "util/coding.h"

@ -31,7 +31,6 @@ int main() {
#include "util/string_util.h" #include "util/string_util.h"
using GFLAGS_NAMESPACE::ParseCommandLineFlags; using GFLAGS_NAMESPACE::ParseCommandLineFlags;
using GFLAGS_NAMESPACE::SetUsageMessage;
DEFINE_string(file_dir, "", "Directory where the files will be created" DEFINE_string(file_dir, "", "Directory where the files will be created"
" for benchmark. Added for using tmpfs."); " for benchmark. Added for using tmpfs.");

@ -14,7 +14,6 @@
#include "block_fetcher.h" #include "block_fetcher.h"
#include "file/random_access_file_reader.h" #include "file/random_access_file_reader.h"
#include "logging/logging.h"
#include "memory/memory_allocator.h" #include "memory/memory_allocator.h"
#include "monitoring/perf_context_imp.h" #include "monitoring/perf_context_imp.h"
#include "monitoring/statistics.h" #include "monitoring/statistics.h"

@ -6,7 +6,6 @@
#include "test_util/sync_point.h" #include "test_util/sync_point.h"
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h>
#include "test_util/sync_point_impl.h" #include "test_util/sync_point_impl.h"

@ -10,7 +10,6 @@
#ifdef GFLAGS #ifdef GFLAGS
#ifdef NUMA #ifdef NUMA
#include <numa.h> #include <numa.h>
#include <numaif.h>
#endif #endif
#ifndef OS_WIN #ifndef OS_WIN
#include <unistd.h> #include <unistd.h>

@ -24,7 +24,6 @@
#include "db/write_batch_internal.h" #include "db/write_batch_internal.h"
#include "env/composite_env_wrapper.h" #include "env/composite_env_wrapper.h"
#include "file/filename.h" #include "file/filename.h"
#include "port/port_dirent.h"
#include "rocksdb/cache.h" #include "rocksdb/cache.h"
#include "rocksdb/file_checksum.h" #include "rocksdb/file_checksum.h"
#include "rocksdb/table_properties.h" #include "rocksdb/table_properties.h"

@ -9,7 +9,6 @@
#ifdef GFLAGS #ifdef GFLAGS
#ifdef NUMA #ifdef NUMA
#include <numa.h> #include <numa.h>
#include <numaif.h>
#endif #endif
#ifndef OS_WIN #ifndef OS_WIN
#include <unistd.h> #include <unistd.h>
@ -50,8 +49,6 @@
#include "util/string_util.h" #include "util/string_util.h"
using GFLAGS_NAMESPACE::ParseCommandLineFlags; using GFLAGS_NAMESPACE::ParseCommandLineFlags;
using GFLAGS_NAMESPACE::RegisterFlagValidator;
using GFLAGS_NAMESPACE::SetUsageMessage;
DEFINE_string(trace_path, "", "The trace file path."); DEFINE_string(trace_path, "", "The trace file path.");
DEFINE_string(output_dir, "", "The directory to store the output files."); DEFINE_string(output_dir, "", "The directory to store the output files.");

@ -19,7 +19,6 @@ int main() {
#include <cmath> #include <cmath>
#include <vector> #include <vector>
#include "logging/logging.h"
#include "memory/arena.h" #include "memory/arena.h"
#include "port/jemalloc_helper.h" #include "port/jemalloc_helper.h"
#include "rocksdb/filter_policy.h" #include "rocksdb/filter_policy.h"

@ -11,7 +11,6 @@
#include <stdint.h> #include <stdint.h>
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
#include "logging/logging.h"
#include "port/port.h" #include "port/port.h"
#include "rocksdb/slice.h" #include "rocksdb/slice.h"

@ -20,7 +20,6 @@ int main() {
#include <vector> #include <vector>
#include "dynamic_bloom.h" #include "dynamic_bloom.h"
#include "logging/logging.h"
#include "memory/arena.h" #include "memory/arena.h"
#include "port/port.h" #include "port/port.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"

@ -6,7 +6,6 @@
#include "util/string_util.h" #include "util/string_util.h"
#include <errno.h> #include <errno.h>
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <algorithm> #include <algorithm>

@ -218,7 +218,6 @@ static xxh_u32 XXH_read32(const void* memPtr)
/* === Endianess === */ /* === Endianess === */
typedef enum { XXH_bigEndian=0, XXH_littleEndian=1 } XXH_endianess;
/* XXH_CPU_LITTLE_ENDIAN can be defined externally, for example on the compiler command line */ /* XXH_CPU_LITTLE_ENDIAN can be defined externally, for example on the compiler command line */
#ifndef XXH_CPU_LITTLE_ENDIAN #ifndef XXH_CPU_LITTLE_ENDIAN
@ -1154,7 +1153,6 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src
#include "xxh3p.h" /* XXH3 preview for RocksDB */ #include "xxh3p.h" /* XXH3 preview for RocksDB */
#endif /* XXH_NO_LONG_LONG */ #endif /* XXH_NO_LONG_LONG */
#endif /* XXHASH_C_01393879 */ #endif /* XXHASH_C_01393879 */

@ -26,7 +26,6 @@
#include "rocksdb/utilities/debug.h" #include "rocksdb/utilities/debug.h"
#include "test_util/sync_point.h" #include "test_util/sync_point.h"
#include "test_util/testharness.h" #include "test_util/testharness.h"
#include "util/cast_util.h"
#include "util/random.h" #include "util/random.h"
#include "util/string_util.h" #include "util/string_util.h"
#include "utilities/blob_db/blob_db_impl.h" #include "utilities/blob_db/blob_db_impl.h"

@ -10,7 +10,6 @@
#include "utilities/cassandra/serialize.h" #include "utilities/cassandra/serialize.h"
#include "utilities/cassandra/test_utils.h" #include "utilities/cassandra/test_utils.h"
using namespace ROCKSDB_NAMESPACE::cassandra;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
namespace cassandra { namespace cassandra {

@ -17,7 +17,6 @@
#include "utilities/cassandra/test_utils.h" #include "utilities/cassandra/test_utils.h"
#include "utilities/merge_operators.h" #include "utilities/merge_operators.h"
using namespace ROCKSDB_NAMESPACE;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
namespace cassandra { namespace cassandra {

@ -6,7 +6,6 @@
#include "test_util/testharness.h" #include "test_util/testharness.h"
#include "utilities/cassandra/serialize.h" #include "utilities/cassandra/serialize.h"
using namespace ROCKSDB_NAMESPACE::cassandra;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {
namespace cassandra { namespace cassandra {

@ -7,9 +7,6 @@
#include "rocksdb/slice.h" #include "rocksdb/slice.h"
#include "utilities/merge_operators.h" #include "utilities/merge_operators.h"
using ROCKSDB_NAMESPACE::Logger;
using ROCKSDB_NAMESPACE::MergeOperator;
using ROCKSDB_NAMESPACE::Slice;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -27,7 +27,6 @@
#include "utilities/merge_operators.h" #include "utilities/merge_operators.h"
#include "utilities/merge_operators/string_append/stringappend2.h" #include "utilities/merge_operators/string_append/stringappend2.h"
using namespace ROCKSDB_NAMESPACE;
namespace ROCKSDB_NAMESPACE { namespace ROCKSDB_NAMESPACE {

@ -10,7 +10,6 @@
#include <thread> #include <thread>
#include "db/db_impl/db_impl.h" #include "db/db_impl/db_impl.h"
#include "logging/logging.h"
#include "port/port.h" #include "port/port.h"
#include "rocksdb/db.h" #include "rocksdb/db.h"
#include "rocksdb/perf_context.h" #include "rocksdb/perf_context.h"

Loading…
Cancel
Save