mirror of https://github.com/redis/redis.git
Fixes some typos
This commit is contained in:
parent
e6b0e8d9ec
commit
8a4d780068
10
src/t_list.c
10
src/t_list.c
|
@ -603,9 +603,9 @@ void rpoplpushCommand(client *c) {
|
||||||
* Blocking POP operations
|
* Blocking POP operations
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* This is a helper function for handleClientsBlockedOnLists(). It's work
|
/* This is a helper function for handleClientsBlockedOnLists(). Its work is to
|
||||||
* is to serve a specific client (receiver) that is blocked on 'key'
|
* serve a specific client (receiver) that is blocked on 'key' in the context
|
||||||
* in the context of the specified 'db', doing the following:
|
* the specified 'db', doing the following:
|
||||||
*
|
*
|
||||||
* 1) Provide the client with the 'value' element.
|
* 1) Provide the client with the 'value' element.
|
||||||
* 2) If the dstkey is not NULL (we are serving a BRPOPLPUSH) also push the
|
* 2) If the dstkey is not NULL (we are serving a BRPOPLPUSH) also push the
|
||||||
|
@ -696,7 +696,7 @@ void blockingPopGenericCommand(client *c, int where) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (listTypeLength(o) != 0) {
|
if (listTypeLength(o) != 0) {
|
||||||
/* Non empty list, this is like a non normal [LR]POP. */
|
/* Non empty list, this is like a normal [LR]POP. */
|
||||||
char *event = (where == LIST_HEAD) ? "lpop" : "rpop";
|
char *event = (where == LIST_HEAD) ? "lpop" : "rpop";
|
||||||
robj *value = listTypePop(o,where);
|
robj *value = listTypePop(o,where);
|
||||||
serverAssert(value != NULL);
|
serverAssert(value != NULL);
|
||||||
|
@ -732,7 +732,7 @@ void blockingPopGenericCommand(client *c, int where) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the list is empty or the key does not exists we must block */
|
/* If the keys do not exist we must block */
|
||||||
blockForKeys(c,BLOCKED_LIST,c->argv + 1,c->argc - 2,timeout,NULL,NULL);
|
blockForKeys(c,BLOCKED_LIST,c->argv + 1,c->argc - 2,timeout,NULL,NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue