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
88584757
Commit
88584757
authored
Oct 31, 2018
by
TousakaRin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: acc_reqeusts has'nt been initialized in sharedpart
parent
1b35abc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
socket.cpp
src/brpc/socket.cpp
+3
-10
No files found.
src/brpc/socket.cpp
View file @
88584757
...
...
@@ -196,8 +196,9 @@ Socket::SharedPart::SharedPart(SocketId creator_socket_id2)
,
in_num_messages
(
0
)
,
out_size
(
0
)
,
out_num_messages
(
0
)
,
extended_stat
(
NULL
)
,
acc_errors
(
0
)
{
,
extended_stat
(
NULL
)
,
acc_errors
(
0
)
,
acc_requests
(
0
)
{
}
Socket
::
SharedPart
::~
SharedPart
()
{
...
...
@@ -820,14 +821,6 @@ void Socket::AddRequestCount() {
}
}
uint64_t
Socket
::
acc_errors
()
const
{
SharedPart
*
sp
=
GetSharedPart
();
if
(
sp
)
{
return
sp
->
acc_errors
.
load
(
butil
::
memory_order_relaxed
);
}
return
0
;
}
int
Socket
::
SetFailed
(
int
error_code
,
const
char
*
error_fmt
,
...)
{
if
(
error_code
==
0
)
{
CHECK
(
false
)
<<
"error_code is 0"
;
...
...
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