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
Hide 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) {
dictEntry
*
de
;
list
*
l
;
printf
(
"blockForKey %p %s
\n
"
,
c
,
key
->
ptr
);
c
->
blockingkey
=
key
;
incrRefCount
(
key
);
c
->
blockingto
=
timeout
;
...
...
@@ -5488,6 +5489,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
l
=
listCreate
();
retval
=
dictAdd
(
c
->
db
->
blockingkeys
,
key
,
l
);
incrRefCount
(
key
);
assert
(
retval
==
DICT_OK
);
}
else
{
l
=
dictGetEntryVal
(
de
);
...
...
@@ -5502,6 +5504,7 @@ static void unblockClient(redisClient *c) {
dictEntry
*
de
;
list
*
l
;
printf
(
"unblockClient %p %s
\n
"
,
c
,
c
->
blockingkey
->
ptr
);
/* Remove this client from the list of clients waiting for this key. */
assert
(
c
->
blockingkey
!=
NULL
);
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