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
9fe33a0e
Commit
9fe33a0e
authored
Dec 29, 2009
by
antirez
Browse files
a few more fixes, still broken
parent
2affc3ed
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
9fe33a0e
...
@@ -5479,6 +5479,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
...
@@ -5479,6 +5479,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
dictEntry *de;
dictEntry *de;
list *l;
list *l;
printf("blockForKey %p %s\n", c, key->ptr);
c->blockingkey = key;
c->blockingkey = key;
incrRefCount(key);
incrRefCount(key);
c->blockingto = timeout;
c->blockingto = timeout;
...
@@ -5488,6 +5489,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
...
@@ -5488,6 +5489,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
l = listCreate();
l = listCreate();
retval = dictAdd(c->db->blockingkeys,key,l);
retval = dictAdd(c->db->blockingkeys,key,l);
incrRefCount(key);
assert(retval == DICT_OK);
assert(retval == DICT_OK);
} else {
} else {
l = dictGetEntryVal(de);
l = dictGetEntryVal(de);
...
@@ -5502,6 +5504,7 @@ static void unblockClient(redisClient *c) {
...
@@ -5502,6 +5504,7 @@ static void unblockClient(redisClient *c) {
dictEntry *de;
dictEntry *de;
list *l;
list *l;
printf("unblockClient %p %s\n", c, c->blockingkey->ptr);
/* Remove this client from the list of clients waiting for this key. */
/* Remove this client from the list of clients waiting for this key. */
assert(c->blockingkey != NULL);
assert(c->blockingkey != NULL);
de = dictFind(c->db->blockingkeys,c->blockingkey);
de = dictFind(c->db->blockingkeys,c->blockingkey);
...
...
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