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
a864cae2
Commit
a864cae2
authored
May 27, 2013
by
antirez
Browse files
A comment about BLPOP timeout did not reflected actual behavior.
parent
1909b875
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.h
View file @
a864cae2
...
@@ -395,13 +395,15 @@ typedef struct multiCmd {
...
@@ -395,13 +395,15 @@ typedef struct multiCmd {
typedef
struct
multiState
{
typedef
struct
multiState
{
multiCmd
*
commands
;
/* Array of MULTI commands */
multiCmd
*
commands
;
/* Array of MULTI commands */
int
count
;
/* Total number of MULTI commands */
int
count
;
/* Total number of MULTI commands */
int
minreplicas
;
/* MINREPLICAS for synchronous replication */
time_t
minreplicas_timeout
;
/* MINREPLICAS timeout as unixtime. */
}
multiState
;
}
multiState
;
typedef
struct
blockingState
{
typedef
struct
blockingState
{
dict
*
keys
;
/* The keys we are waiting to terminate a blocking
dict
*
keys
;
/* The keys we are waiting to terminate a blocking
* operation such as BLPOP. Otherwise NULL. */
* operation such as BLPOP. Otherwise NULL. */
time_t
timeout
;
/* Blocking operation timeout. If UNIX current time
time_t
timeout
;
/* Blocking operation timeout. If UNIX current time
* is >
=
timeout then the operation timed out. */
* is > timeout then the operation timed out. */
robj
*
target
;
/* The key that should receive the element,
robj
*
target
;
/* The key that should receive the element,
* for BRPOPLPUSH. */
* for BRPOPLPUSH. */
}
blockingState
;
}
blockingState
;
...
...
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