Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
97ab9440
Commit
97ab9440
authored
6 years ago
by
TousakaRin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors caused by conflicts in rebase, fix code style
parent
b7509aea
master
0.9.8-rc01
0.9.7
0.9.7-rc03
0.9.7-rc02
0.9.7-rc01
0.9.6
0.9.6-rc03
0.9.6-rc02
0.9.6-rc01
0.9.5
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
method_status.h
src/brpc/details/method_status.h
+0
-1
global.cpp
src/brpc/global.cpp
+11
-5
No files found.
src/brpc/details/method_status.h
View file @
97ab9440
...
...
@@ -143,5 +143,4 @@ inline void MethodStatus::OnResponded(int error_code, int64_t latency) {
}
// namespace brpc
#endif //BRPC_METHOD_STATUS_H
This diff is collapsed.
Click to expand it.
src/brpc/global.cpp
View file @
97ab9440
...
...
@@ -84,7 +84,6 @@
extern
"C"
{
// defined in gperftools/malloc_extension_c.h
void
BAIDU_WEAK
MallocExtension_ReleaseFreeMemory
(
void
);
void
BAIDU_WEAK
RegisterThriftProtocol
();
}
namespace
brpc
{
...
...
@@ -475,10 +474,17 @@ static void GlobalInitializeOrDieImpl() {
exit
(
1
);
}
// Register Thrift framed protocol if linked
if
(
RegisterThriftProtocol
)
{
RegisterThriftProtocol
();
}
// Use Macro is more straight forward than weak link technology(becasue of static link issue) + // Register Thrift framed protocol if linked
#ifdef ENABLE_THRIFT_FRAMED_PROTOCOL
Protocol
thrift_binary_protocol
=
{
policy
::
ParseThriftMessage
,
policy
::
SerializeThriftRequest
,
policy
::
PackThriftRequest
,
policy
::
ProcessThriftRequest
,
policy
::
ProcessThriftResponse
,
policy
::
VerifyThriftRequest
,
NULL
,
NULL
,
CONNECTION_TYPE_POOLED_AND_SHORT
,
"thrift"
};
if
(
RegisterProtocol
(
PROTOCOL_THRIFT
,
thrift_binary_protocol
)
!=
0
)
{
exit
(
1
);
}
#endif
// Only valid at client side
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment