Move util/trace_replay.* to trace_replay/ (#5376)

Summary:
util/ means for lower level libraries. trace_replay is highly integrated to DB and sometimes call DB. Move it out to a separate directory.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5376

Differential Revision: D15550938

Pulled By: siying

fbshipit-source-id: f46dce5ceffdc05a73f26379c7bb1b79ebe6c207
main
Siying Dong 6 years ago committed by Facebook Github Bot
parent 349db90497
commit 5851cb7fdb
  1. 2
      CMakeLists.txt
  2. 2
      TARGETS
  3. 2
      db/db_impl/db_impl.h
  4. 2
      db/db_iter.cc
  5. 2
      src.mk
  6. 2
      tools/trace_analyzer_test.cc
  7. 2
      tools/trace_analyzer_tool.cc
  8. 2
      tools/trace_analyzer_tool.h
  9. 2
      trace_replay/trace_replay.cc
  10. 0
      trace_replay/trace_replay.h
  11. 2
      utilities/trace/file_trace_reader_writer.cc

@ -623,6 +623,7 @@ set(SOURCES
tools/ldb_tool.cc
tools/sst_dump_tool.cc
tools/trace_analyzer_tool.cc
trace_replay/trace_replay.cc
util/bloom.cc
util/coding.cc
util/compaction_job_stats_impl.cc
@ -642,7 +643,6 @@ set(SOURCES
util/string_util.cc
util/thread_local.cc
util/threadpool_imp.cc
util/trace_replay.cc
util/xxhash.cc
utilities/backupable/backupable_db.cc
utilities/blob_db/blob_compaction_filter.cc

@ -221,6 +221,7 @@ cpp_library(
"tools/ldb_cmd.cc",
"tools/ldb_tool.cc",
"tools/sst_dump_tool.cc",
"trace_replay/trace_replay.cc",
"util/bloom.cc",
"util/build_version.cc",
"util/coding.cc",
@ -241,7 +242,6 @@ cpp_library(
"util/string_util.cc",
"util/thread_local.cc",
"util/threadpool_imp.cc",
"util/trace_replay.cc",
"util/xxhash.cc",
"utilities/backupable/backupable_db.cc",
"utilities/blob_db/blob_compaction_filter.cc",

@ -53,12 +53,12 @@
#include "rocksdb/transaction_log.h"
#include "rocksdb/write_buffer_manager.h"
#include "table/scoped_arena_iterator.h"
#include "trace_replay/trace_replay.h"
#include "util/autovector.h"
#include "util/hash.h"
#include "util/repeatable_thread.h"
#include "util/stop_watch.h"
#include "util/thread_local.h"
#include "util/trace_replay.h"
namespace rocksdb {

@ -26,9 +26,9 @@
#include "rocksdb/options.h"
#include "table/internal_iterator.h"
#include "table/iterator_wrapper.h"
#include "trace_replay/trace_replay.h"
#include "util/mutexlock.h"
#include "util/string_util.h"
#include "util/trace_replay.h"
#include "util/user_comparator_wrapper.h"
namespace rocksdb {

@ -142,6 +142,7 @@ LIB_SOURCES = \
test_util/sync_point_impl.cc \
test_util/transaction_test_util.cc \
tools/dump/db_dump_tool.cc \
trace_replay/trace_replay.cc \
util/bloom.cc \
util/build_version.cc \
util/coding.cc \
@ -162,7 +163,6 @@ LIB_SOURCES = \
util/string_util.cc \
util/thread_local.cc \
util/threadpool_imp.cc \
util/trace_replay.cc \
util/xxhash.cc \
utilities/backupable/backupable_db.cc \
utilities/blob_db/blob_compaction_filter.cc \

@ -30,7 +30,7 @@ int main() {
#include "test_util/testharness.h"
#include "test_util/testutil.h"
#include "tools/trace_analyzer_tool.h"
#include "util/trace_replay.h"
#include "trace_replay/trace_replay.h"
namespace rocksdb {

@ -44,13 +44,13 @@
#include "table/plain/plain_table_factory.h"
#include "table/table_reader.h"
#include "tools/trace_analyzer_tool.h"
#include "trace_replay/trace_replay.h"
#include "util/coding.h"
#include "util/compression.h"
#include "util/file_reader_writer.h"
#include "util/gflags_compat.h"
#include "util/random.h"
#include "util/string_util.h"
#include "util/trace_replay.h"
using GFLAGS_NAMESPACE::ParseCommandLineFlags;
using GFLAGS_NAMESPACE::RegisterFlagValidator;

@ -16,7 +16,7 @@
#include "rocksdb/env.h"
#include "rocksdb/trace_reader_writer.h"
#include "rocksdb/write_batch.h"
#include "util/trace_replay.h"
#include "trace_replay/trace_replay.h"
namespace rocksdb {

@ -3,7 +3,7 @@
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include "util/trace_replay.h"
#include "trace_replay/trace_replay.h"
#include <chrono>
#include <sstream>

@ -5,9 +5,9 @@
#include "utilities/trace/file_trace_reader_writer.h"
#include "trace_replay/trace_replay.h"
#include "util/coding.h"
#include "util/file_reader_writer.h"
#include "util/trace_replay.h"
namespace rocksdb {

Loading…
Cancel
Save