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

Commit

Permalink
refactor: remove thrift generated files of fd/simplekv (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Tao authored Feb 20, 2021
1 parent ee1026d commit f7c6de4
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 954 deletions.
21 changes: 0 additions & 21 deletions compile_thrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@
"_types.cpp": "src/runtime"
}
},
{
"name": "fd",
"path": "src/failure_detector",
"file_move": {
"_types.h": "include/dsn/dist/failure_detector"
},
"include_fix": {
"_types.h": {
"add": ["<dsn/service_api_cpp.h>"],
"remove": ["\"dsn_types.h\""]
},
"_types.cpp": {
"add": ["<dsn/dist/failure_detector/fd_types.h>"],
"remove": ["\"fd_types.h\""]
},
}
},
{
"name": "replication",
"path": "src/",
Expand All @@ -63,10 +46,6 @@
},
},
},
{
"name": "simple_kv",
"path": "src/replica/storage/simple_kv"
},
]


Expand Down
3 changes: 2 additions & 1 deletion include/dsn/dist/failure_detector/fd.code.definition.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
#pragma once

#include <dsn/tool-api/task_code.h>
#include <dsn/dist/failure_detector/fd_types.h>
#include <dsn/service_api_cpp.h>
#include "fd_types.h"

namespace dsn {
namespace fd {
Expand Down
222 changes: 0 additions & 222 deletions include/dsn/dist/failure_detector/fd_types.h

This file was deleted.

11 changes: 8 additions & 3 deletions src/failure_detector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
set(MY_PROJ_NAME dsn.failure_detector)

# Source files under CURRENT project directory will be automatically included.
# You can manually set MY_PROJ_SRC to include source files under other directories.
set(MY_PROJ_SRC "")
thrift_generate_cpp(
FD_THRIFT_SRCS
FD_THRIFT_HDRS
${CMAKE_CURRENT_SOURCE_DIR}/fd.thrift
)

seT(MY_PROJ_SRC ${FD_THRIFT_SRCS})


# Search mode for source files under CURRENT project directory?
# "GLOB_RECURSE" for recursive search
Expand Down
5 changes: 0 additions & 5 deletions src/failure_detector/fd.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@ struct config_master_message
1: dsn.rpc_address master;
2: bool is_register;
}

service failure_detector
{
beacon_ack ping(1:beacon_msg beacon)
}
Loading

0 comments on commit f7c6de4

Please sign in to comment.