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
491682a6
Commit
491682a6
authored
Jul 14, 2018
by
dejun.xdj
Browse files
Streams: using streamCompareID() instead of direct compare in block.c.
parent
a2177cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
491682a6
...
@@ -397,10 +397,7 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -397,10 +397,7 @@ void handleClientsBlockedOnKeys(void) {
}
}
}
}
if
(
s
->
last_id
.
ms
>
gt
->
ms
||
if
(
streamCompareID
(
&
s
->
last_id
,
gt
)
>
0
)
{
(
s
->
last_id
.
ms
==
gt
->
ms
&&
s
->
last_id
.
seq
>
gt
->
seq
))
{
streamID
start
=
*
gt
;
streamID
start
=
*
gt
;
start
.
seq
++
;
/* Can't overflow, it's an uint64_t */
start
.
seq
++
;
/* Can't overflow, it's an uint64_t */
...
...
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