Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
218e522c
Commit
218e522c
authored
Dec 17, 2015
by
antirez
Browse files
Fix processCommand() comment about return value.
parent
a1c9c05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
218e522c
...
@@ -2330,9 +2330,9 @@ void call(client *c, int flags) {
...
@@ -2330,9 +2330,9 @@ void call(client *c, int flags) {
* processCommand() execute the command or prepare the
* processCommand() execute the command or prepare the
* server for a bulk read from the client.
* server for a bulk read from the client.
*
*
* If
1
is returned the client is still alive and valid and
* If
C_OK
is returned the client is still alive and valid and
* other operations can be performed by the caller. Otherwise
* other operations can be performed by the caller. Otherwise
* if
0
is returned the client was destroyed (i.e. after QUIT). */
* if
C_ERR
is returned the client was destroyed (i.e. after QUIT). */
int
processCommand
(
client
*
c
)
{
int
processCommand
(
client
*
c
)
{
/* The QUIT command is handled separately. Normal command procs will
/* The QUIT command is handled separately. Normal command procs will
* go through checking for replication and QUIT will cause trouble
* go through checking for replication and QUIT will cause trouble
...
...
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