From e51f9c3027d217d74648b2e7ca506fd585634f18 Mon Sep 17 00:00:00 2001 From: "darion.yaphet" Date: Tue, 29 Mar 2022 21:13:50 +0800 Subject: [PATCH] remove some useless flag --- src/daemons/MetaDaemonInit.cpp | 2 +- src/meta/http/test/MetaHttpReplaceHandlerTest.cpp | 2 -- src/meta/test/JobManagerTest.cpp | 2 -- src/webservice/Common.cpp | 3 --- src/webservice/WebService.cpp | 1 + 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/daemons/MetaDaemonInit.cpp b/src/daemons/MetaDaemonInit.cpp index 03685d4502d..25261014255 100644 --- a/src/daemons/MetaDaemonInit.cpp +++ b/src/daemons/MetaDaemonInit.cpp @@ -43,7 +43,7 @@ DEFINE_int32(meta_num_io_threads, 16, "Number of IO threads"); DEFINE_int32(meta_num_worker_threads, 32, "Number of workers"); DEFINE_string(meta_data_path, "", "Root data path"); DECLARE_string(meta_server_addrs); // use define from grap flags. -DECLARE_int32(ws_meta_http_port); +DEFINE_int32(ws_meta_http_port, 11000, "Port to listen on Meta with HTTP protocol"); #endif using nebula::web::PathParams; diff --git a/src/meta/http/test/MetaHttpReplaceHandlerTest.cpp b/src/meta/http/test/MetaHttpReplaceHandlerTest.cpp index 1cd1b6782cd..c0c001f342d 100644 --- a/src/meta/http/test/MetaHttpReplaceHandlerTest.cpp +++ b/src/meta/http/test/MetaHttpReplaceHandlerTest.cpp @@ -16,8 +16,6 @@ #include "webservice/Router.h" #include "webservice/WebService.h" -DECLARE_int32(ws_storage_http_port); - namespace nebula { namespace meta { diff --git a/src/meta/test/JobManagerTest.cpp b/src/meta/test/JobManagerTest.cpp index 34ecb6ccec3..e0e677739fe 100644 --- a/src/meta/test/JobManagerTest.cpp +++ b/src/meta/test/JobManagerTest.cpp @@ -20,8 +20,6 @@ #include "meta/test/TestUtils.h" #include "webservice/WebService.h" -DECLARE_int32(ws_storage_http_port); - namespace nebula { namespace meta { diff --git a/src/webservice/Common.cpp b/src/webservice/Common.cpp index f73f8907bff..9fdf8a8cffe 100644 --- a/src/webservice/Common.cpp +++ b/src/webservice/Common.cpp @@ -7,9 +7,6 @@ #include -DEFINE_int32(ws_meta_http_port, 11000, "Port to listen on Meta with HTTP protocol"); -DEFINE_int32(ws_storage_http_port, 12000, "Port to listen on Storage with HTTP protocol"); - namespace nebula { std::unordered_map WebServiceUtils::kStatusStringMap_ = { diff --git a/src/webservice/WebService.cpp b/src/webservice/WebService.cpp index 93331967ea3..b7532a5ad66 100644 --- a/src/webservice/WebService.cpp +++ b/src/webservice/WebService.cpp @@ -22,6 +22,7 @@ DEFINE_string(ws_ip, "0.0.0.0", "IP/Hostname to bind to"); DEFINE_int32(ws_threads, 4, "Number of threads for the web service."); #ifdef BUILD_STANDALONE +DEFINE_int32(ws_storage_http_port, 12000, "Port to listen on Storage with HTTP protocol"); DEFINE_int32(ws_storage_threads, 4, "Number of threads for the web service."); #endif