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
a678df6f
Commit
a678df6f
authored
Dec 19, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis_server_protocol: refine comment
parent
16894d1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
redis.h
src/brpc/redis.h
+5
-5
No files found.
src/brpc/redis.h
View file @
a678df6f
...
...
@@ -268,13 +268,13 @@ public:
// create a transaction_handler to process following commands until transaction_handler
// returns OK. For example, for command "multi; set k1 v1; set k2 v2; set k3 v3;
// exec":
// 1) First command is "multi" and Run()
return RedisCommandHandler::CONTINUE, then
// brpc calls NewTransactionHandler() to new a transaction_handler.
// 2)
Call
transaction_handler.Run() with command "set k1 v1", which should return
// 1) First command is "multi" and Run()
should return RedisCommandHandler::CONTINUE,
//
then
brpc calls NewTransactionHandler() to new a transaction_handler.
// 2)
brpc calls
transaction_handler.Run() with command "set k1 v1", which should return
// CONTINUE.
// 3)
Call
transaction_handler.Run() with command "set k2 v2", which should return
// 3)
brpc calls
transaction_handler.Run() with command "set k2 v2", which should return
// CONTINUE.
// 4)
Call
transaction_handler.Run() with command "set k3 v3", which should return
// 4)
brpc calls
transaction_handler.Run() with command "set k3 v3", which should return
// CONTINUE.
// 5) An ending marker(exec) is found in transaction_handler.Run(), user exeuctes all
// the commands and return OK. This Transation is done.
...
...
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