Commit 214017b8 authored by Ge Jun's avatar Ge Jun

quote added code in last commit with the thrift macro

parent 7320fa5b
......@@ -22,7 +22,9 @@
#include "brpc/details/method_status.h" // MethodStatus
#include "brpc/builtin/status_service.h"
#include "brpc/nshead_service.h" // NsheadService
#ifdef ENABLE_THRIFT_FRAMED_PROTOCOL
#include "brpc/thrift_service.h" // ThriftService
#endif
#include "brpc/rtmp.h" // RtmpService
#include "brpc/builtin/common.h"
......@@ -188,6 +190,7 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
nshead_svc->_status->Describe(os, desc_options);
os << '\n';
}
#ifdef ENABLE_THRIFT_FRAMED_PROTOCOL
const ThriftService* thrift_svc = server->options().thrift_service;
if (thrift_svc && thrift_svc->_status) {
DescribeOptions options;
......@@ -199,6 +202,7 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
thrift_svc->_status->Describe(os, desc_options);
os << '\n';
}
#endif
if (policy::g_server_msg_status) {
DescribeOptions options;
options.verbose = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment