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
3cb3cb18
Commit
3cb3cb18
authored
Oct 25, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Controller.DeleteStuff only cancels call_id unused by RPC
parent
a2f294e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
controller.cpp
src/brpc/controller.cpp
+1
-3
controller.h
src/brpc/controller.h
+0
-1
No files found.
src/brpc/controller.cpp
View file @
3cb3cb18
...
...
@@ -154,8 +154,7 @@ void Controller::DeleteStuff() {
_mongo_session_data
.
reset
();
delete
_rpc_dump_meta
;
if
(
_correlation_id
!=
INVALID_BTHREAD_ID
&&
!
has_flag
(
FLAGS_DESTROYED_CID
))
{
if
(
!
is_used_by_rpc
()
&&
_correlation_id
!=
INVALID_BTHREAD_ID
)
{
CHECK_NE
(
EPERM
,
bthread_id_cancel
(
_correlation_id
));
}
if
(
_oncancel_id
!=
INVALID_BTHREAD_ID
)
{
...
...
@@ -860,7 +859,6 @@ void Controller::EndRPC(const CompletionInfo& info) {
// Check comments in above branch on bthread_about_to_quit.
bthread_about_to_quit
();
add_flag
(
FLAGS_DESTROYED_CID
);
CHECK_EQ
(
0
,
bthread_id_unlock_and_destroy
(
saved_cid
));
}
}
...
...
src/brpc/controller.h
View file @
3cb3cb18
...
...
@@ -107,7 +107,6 @@ friend void policy::ProcessMongoRequest(InputMessageBase*);
static
const
uint32_t
FLAGS_READ_PROGRESSIVELY
=
(
1
<<
3
);
static
const
uint32_t
FLAGS_PROGRESSIVE_READER
=
(
1
<<
4
);
static
const
uint32_t
FLAGS_BACKUP_REQUEST
=
(
1
<<
5
);
static
const
uint32_t
FLAGS_DESTROYED_CID
=
(
1
<<
6
);
// Let _done delete the correlation_id, used by combo channels to
// make lifetime of the correlation_id more flexible.
static
const
uint32_t
FLAGS_DESTROY_CID_IN_DONE
=
(
1
<<
7
);
...
...
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