mirror of
https://github.com/fluencelabs/redis
synced 2025-06-18 11:41:20 +00:00
Streams: using streamCompareID() instead of direct compare in block.c.
This commit is contained in:
@ -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 */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user