summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-12-17 09:22:16 +0100
committerantirez <antirez@gmail.com>2015-12-17 09:51:58 +0100
commitf50dfff0eef96c2af6f51a14f9dd178bcfdce396 (patch)
tree7d32e3acc43cdc80ad725b6e89280f8bbec6a73e
parentfc00042ef92e9dd828ea18d7892adf787537323e (diff)
downloadredis-f50dfff0eef96c2af6f51a14f9dd178bcfdce396.tar.gz
Fix processCommand() comment about return value.
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index 05454814c..cfe7067ca 100644
--- a/src/server.c
+++ b/src/server.c
@@ -2308,9 +2308,9 @@ void call(client *c, int flags) {
* processCommand() execute the command or prepare the
* 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
- * 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) {
/* The QUIT command is handled separately. Normal command procs will
* go through checking for replication and QUIT will cause trouble