Skip to content

Commit

Permalink
Removed a unused proxy status api named test-show (#5136)
Browse files Browse the repository at this point in the history
close #5135
  • Loading branch information
jiaqizho authored Jun 14, 2022
1 parent 4b3a2ce commit ad6b831
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions dbms/src/Storages/Transaction/ProxyFFIStatusService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,6 @@

namespace DB
{
HttpRequestRes HandleHttpRequestTestShow(
EngineStoreServerWrap *,
std::string_view path,
const std::string & api_name,
std::string_view query,
std::string_view body)
{
auto * res = RawCppString::New(fmt::format(
"api_name: {}\npath: {}\nquery: {}\nbody: {}",
api_name,
path,
query,
body));
return HttpRequestRes{
.status = HttpRequestStatus::Ok,
.res = CppStrWithView{
.inner = GenRawCppPtr(res, RawCppPtrTypeImpl::String),
.view = BaseBuffView{res->data(), res->size()}}};
}

HttpRequestRes HandleHttpRequestSyncStatus(
EngineStoreServerWrap * server,
std::string_view path,
Expand Down Expand Up @@ -112,8 +92,7 @@ using HANDLE_HTTP_URI_METHOD = HttpRequestRes (*)(EngineStoreServerWrap *, std::

static const std::map<std::string, HANDLE_HTTP_URI_METHOD> AVAILABLE_HTTP_URI = {
{"/tiflash/sync-status/", HandleHttpRequestSyncStatus},
{"/tiflash/store-status", HandleHttpRequestStoreStatus},
{"/tiflash/test-show", HandleHttpRequestTestShow}};
{"/tiflash/store-status", HandleHttpRequestStoreStatus}};

uint8_t CheckHttpUriAvailable(BaseBuffView path_)
{
Expand Down

0 comments on commit ad6b831

Please sign in to comment.