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
8d0490e7
Commit
8d0490e7
authored
Oct 16, 2009
by
antirez
Browse files
some dead code removed
parent
638e42ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
8d0490e7
...
@@ -1360,10 +1360,6 @@ static int processCommand(redisClient *c) {
...
@@ -1360,10 +1360,6 @@ static int processCommand(redisClient *c) {
}
}
c->argc--;
c->argc--;
c->bulklen = bulklen+2; /* add two bytes for CR+LF */
c->bulklen = bulklen+2; /* add two bytes for CR+LF */
/*
if (sdslen(c->querybuf) > 0)
processInputBuffer(c);
*/
return 1;
return 1;
}
}
} else {
} else {
...
@@ -1394,10 +1390,6 @@ static int processCommand(redisClient *c) {
...
@@ -1394,10 +1390,6 @@ static int processCommand(redisClient *c) {
/* continue below and process the command */
/* continue below and process the command */
} else {
} else {
c->bulklen = -1;
c->bulklen = -1;
/*
if (sdslen(c->querybuf) > 0)
processInputBuffer(c);
*/
return 1;
return 1;
}
}
}
}
...
@@ -1437,7 +1429,10 @@ static int processCommand(redisClient *c) {
...
@@ -1437,7 +1429,10 @@ static int processCommand(redisClient *c) {
c->argc--;
c->argc--;
c->bulklen = bulklen+2; /* add two bytes for CR+LF */
c->bulklen = bulklen+2; /* add two bytes for CR+LF */
/* It is possible that the bulk read is already in the
/* It is possible that the bulk read is already in the
* buffer. Check this condition and handle it accordingly */
* buffer. Check this condition and handle it accordingly.
* This is just a fast path, alternative to call processInputBuffer().
* It's a good idea since the code is small and this condition
* happens most of the times. */
if ((signed)sdslen(c->querybuf) >= c->bulklen) {
if ((signed)sdslen(c->querybuf) >= c->bulklen) {
c->argv[c->argc] = createStringObject(c->querybuf,c->bulklen-2);
c->argv[c->argc] = createStringObject(c->querybuf,c->bulklen-2);
c->argc++;
c->argc++;
...
...
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