Skip to content

Commit

Permalink
增加copyset健康状态检查工具
Browse files Browse the repository at this point in the history
Change-Id: I810a56fff8b2be3514751638c0d70a49d261f864
  • Loading branch information
charisu committed Nov 4, 2019
1 parent 76cc974 commit 24d2953
Show file tree
Hide file tree
Showing 21 changed files with 1,583 additions and 51 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bind(
git_repository(
name = "com_github_google_glog",
remote = "http://gerrit.storage.netease.com/curve/curve-glog",
commit = "edce3dcb827d9f244cdef39d1fe0cb254c9b5d13",
commit = "c338430f3c70a93c077c3f8051cbdad119abe6ea",
)

bind(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions mk-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ fi
# exit
#fi

cp ./bazel-bin/src/tools/curve_format \
build/curve-chunkserver/usr/bin/curve-format
if [ $? -ne 0 ]
then
exit
fi

mkdir -p build/curve-sdk/usr/curvefs
if [ $? -ne 0 ]
Expand Down
29 changes: 24 additions & 5 deletions src/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ cc_library(
copts = COPTS
)

cc_library(
name = "curve_format_lib",
cc_binary(
name = "curve_format",
srcs = [
"curve_format.h",
"curve_format_main.cpp",
],
deps = [
"//external:braft",
Expand Down Expand Up @@ -121,9 +121,9 @@ cc_binary(
"//external:gflags",
"//src/tools:status_tool_lib",
"//src/tools:namespace_tool_lib",
"//src/tools:curve_format_lib",
"//src/tools:curve_cli_lib",
"//src/tools:consistency_check_lib",
"//src/tools:copyset_check_lib",
],
)

Expand Down Expand Up @@ -166,4 +166,23 @@ cc_library(
"//src/mds/common:mds_common",
"//src/mds/nameserver2:nameserver2",
],
)
)

cc_library(
name = "copyset_check_lib",
srcs = glob(
["copyset_check.cpp", "copyset_check.h"],
),
hdrs = glob(["copyset_check.h"]),
copts = COPTS,
visibility = ["//visibility:public"],
deps = [
"//external:gflags",
"//external:protobuf",
"//external:brpc",
"//external:braft",
"//proto:topology_cc_proto",
"//src/common:curve_common",
"//src/mds/common:mds_common",
],
)
Loading

0 comments on commit 24d2953

Please sign in to comment.