Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
replication: rename clientlib to common (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
shengofsun authored and qinzuoyan committed Jul 17, 2018
1 parent 0a1eb68 commit a1060c3
Show file tree
Hide file tree
Showing 38 changed files with 48 additions and 89 deletions.
2 changes: 1 addition & 1 deletion src/dist/replication/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_subdirectory(client_lib)
add_subdirectory(common)
add_subdirectory(ddl_lib)
add_subdirectory(tool_lib)
add_subdirectory(meta_server)
Expand Down
39 changes: 0 additions & 39 deletions src/dist/replication/client_lib/replication_ds.h

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(MY_PROJ_NAME dsn.replication.clientlib)
set(MY_PROJ_NAME dsn_replication_common)

# Source files under CURRENT project directory will be automatically included.
# You can manually set MY_PROJ_SRC to include source files under other directories.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <dsn/cpp/zlocks.h>
#include <dsn/perf_counter/perf_counter_wrapper.h>
#include <memory>
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"

namespace dsn {
namespace replication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include <dsn/dist/replication.h>
#include <string>
#include "dist/replication/client_lib/replication_ds.h"

using namespace ::dsn::service;

Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(MY_SRC_SEARCH_MODE "GLOB")
set(MY_PROJ_INC_PATH "")

set(MY_PROJ_LIBS
dsn.replication.clientlib
dsn_replication_common
dsn.failure_detector
dsn.failure_detector.multimaster
)
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/mutation.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#pragma once

#include "../client_lib/replication_common.h"
#include "../common/replication_common.h"
#include <list>
#include <atomic>
#include <dsn/utility/link.h>
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/mutation_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#pragma once

#include "../client_lib/replication_common.h"
#include "../common/replication_common.h"
#include "mutation.h"
#include <vector>
#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/mutation_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#pragma once

#include "../client_lib/replication_common.h"
#include "../common/replication_common.h"
#include "mutation.h"
#include <atomic>

Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <dsn/perf_counter/perf_counter_wrapper.h>
#include <dsn/dist/replication/replica_base.h>

#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "mutation.h"
#include "mutation_log.h"
#include "prepare_list.h"
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica_backup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <dsn/utility/filesystem.h>
#include <dsn/dist/replication/replication_app_base.h>

#include "dist/replication/client_lib/block_service_manager.h"
#include "dist/replication/common/block_service_manager.h"

#include "replica.h"
#include "mutation.h"
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "replica_stub.h"
#include "mutation.h"
#include "mutation_log.h"
#include "../client_lib/block_service_manager.h"
#include "../common/block_service_manager.h"

namespace dsn {
namespace replication {
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica_restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "replica.h"
#include "mutation_log.h"
#include "replica_stub.h"
#include "../client_lib/block_service_manager.h"
#include "../common/block_service_manager.h"

using namespace dsn::dist::block_service;

Expand Down
6 changes: 3 additions & 3 deletions src/dist/replication/lib/replica_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
// replica_stub(singleton) --> replica --> replication_app
//

#include "../client_lib/replication_common.h"
#include "../client_lib/fs_manager.h"
#include "../client_lib/block_service_manager.h"
#include "../common/replication_common.h"
#include "../common/fs_manager.h"
#include "../common/block_service_manager.h"
#include "replica.h"
#include <dsn/perf_counter/perf_counter_wrapper.h>
#include <dsn/dist/failure_detector_multimaster.h>
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replication_service_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/

#include <dsn/dist/replication/replication_service_app.h>
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "replica_stub.h"

namespace dsn {
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/meta_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(MY_SRC_SEARCH_MODE "GLOB_RECURSE")
set(MY_PROJ_INC_PATH)

set(MY_PROJ_LIBS
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <dsn/tool-api/async_calls.h>

#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "distributed_lock_service_simple.h"

namespace dsn {
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/meta_server/meta_backup_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "meta_backup_service.h"
#include "dist/replication/meta_server/meta_service.h"
#include "dist/replication/meta_server/server_state.h"
#include "dist/replication/client_lib/block_service_manager.h"
#include "dist/replication/common/block_service_manager.h"

namespace dsn {
namespace replication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <dsn/dist/failure_detector.h>
#include <dsn/dist/distributed_lock_service.h>

#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "dist/replication/meta_server/meta_options.h"

namespace dsn {
Expand Down
4 changes: 2 additions & 2 deletions src/dist/replication/meta_server/meta_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
#include <dsn/dist/meta_state_service.h>
#include <dsn/perf_counter/perf_counter_wrapper.h>

#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "dist/replication/meta_server/meta_options.h"
#include "dist/replication/meta_server/meta_backup_service.h"
#include "dist/replication/meta_server/meta_state_service_utils.h"
#include "dist/replication/client_lib/block_service_manager.h"
#include "dist/replication/common/block_service_manager.h"

class meta_service_test_app;
namespace dsn {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/

#include <dsn/dist/meta_state_service.h>
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"

#include <queue>

Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/meta_server/server_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <dsn/tool-api/task_tracker.h>
#include <dsn/perf_counter/perf_counter_wrapper.h>

#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "dist/replication/meta_server/meta_data.h"

#include "meta_service.h"
Expand Down
4 changes: 2 additions & 2 deletions src/dist/replication/meta_server/server_state_restore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <dsn/dist/block_service.h>
#include <boost/lexical_cast.hpp>

#include "dist/replication/client_lib/block_service_manager.h"
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/block_service_manager.h"
#include "dist/replication/common/replication_common.h"
#include "dist/replication/meta_server/meta_service.h"
#include "dist/replication/meta_server/server_state.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(MY_SRC_SEARCH_MODE "GLOB")
set(MY_PROJ_INC_PATH)

set(MY_PROJ_LIBS dsn_meta_server
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
fmt
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/test/meta_test/misc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <boost/lexical_cast.hpp>

#include <dsn/dist/replication/replication.types.h>
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"
#include "misc.h"

using namespace dsn::replication;
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/test/meta_test/misc/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <dsn/service_api_cpp.h>
#include <dsn/dist/replication/replication.types.h>
#include "dist/replication/meta_server/meta_data.h"
#include "dist/replication/client_lib/fs_manager.h"
#include "dist/replication/common/fs_manager.h"

typedef std::map<dsn::rpc_address, std::shared_ptr<dsn::replication::fs_manager>> nodes_fs_manager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ms_find_source_files("CXX" "${CMAKE_CURRENT_SOURCE_DIR}/../../../meta_server" "G
set(MY_PROJ_INC_PATH "")

set(MY_PROJ_LIBS dsn.replication.zookeeper_provider
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(MY_PROJ_INC_PATH "")
set(MY_PROJ_LIBS dsn_meta_server
dsn_replica_server
dsn.replication.zookeeper_provider
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/test/simple_kv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(MY_PROJ_LIBS gtest
dsn_runtime
dsn_replica_server
dsn_meta_server
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector.multimaster
Expand Down
29 changes: 14 additions & 15 deletions src/dist/replication/test/simple_kv/checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,24 @@
* xxxx-xx-xx, author, fix bug about xxx
*/

#include <sstream>
#include <boost/lexical_cast.hpp>
#include <dsn/utility/factory_store.h>
#include <dsn/tool_api.h>

#include "checker.h"
#include "case.h"
#include "dsn/utility/factory_store.h"

#include "../../lib/replica.h"
#include "../../lib/replica_stub.h"
#include "../../lib/mutation_log.h"
#include "../../meta_server/meta_service.h"
#include "../../meta_server/meta_server_failure_detector.h"
#include "../../meta_server/server_state.h"
#include "../../meta_server/server_load_balancer.h"
#include "../../client_lib/replication_ds.h"
#include "../../../../core/core/service_engine.h"
#include "../../../../core/core/rpc_engine.h"

#include <sstream>
#include <boost/lexical_cast.hpp>
#include "dist/replication/lib/replica.h"
#include "dist/replication/lib/replica_stub.h"
#include "dist/replication/lib/mutation_log.h"
#include "dist/replication/meta_server/meta_service.h"
#include "dist/replication/meta_server/meta_server_failure_detector.h"
#include "dist/replication/meta_server/server_state.h"
#include "dist/replication/meta_server/server_load_balancer.h"

#include <dsn/tool_api.h>
#include "core/core/service_engine.h"
#include "core/core/rpc_engine.h"

namespace dsn {
namespace replication {
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/test/simple_kv/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#pragma once

#include <dsn/dist/replication.h>
#include "dist/replication/client_lib/replication_common.h"
#include "dist/replication/common/replication_common.h"

namespace dsn {
namespace replication {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/dsn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ endif()
set(MY_PROJ_LIBS
dsn_meta_server
dsn_replica_server
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector.multimaster
Expand Down
2 changes: 1 addition & 1 deletion src/tools/repli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(MY_BOOST_PACKAGES system filesystem)

set(MY_PROJ_LIB_PATH "")
set(MY_PROJ_LIBS dsn_replica_server
dsn.replication.clientlib
dsn_replication_common
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector
Expand Down

0 comments on commit a1060c3

Please sign in to comment.