Merge pull request #6013 from rouzier/fix/stream_iterator_init

Fix stream interator start and end key initialize
This commit is contained in:
Salvatore Sanfilippo 2019-04-26 17:25:20 +02:00 committed by GitHub
commit 5c5197fe4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,14 +492,14 @@ void streamIteratorStart(streamIterator *si, stream *s, streamID *start, streamI
streamEncodeID(si->start_key,start); streamEncodeID(si->start_key,start);
} else { } else {
si->start_key[0] = 0; si->start_key[0] = 0;
si->start_key[0] = 0; si->start_key[1] = 0;
} }
if (end) { if (end) {
streamEncodeID(si->end_key,end); streamEncodeID(si->end_key,end);
} else { } else {
si->end_key[0] = UINT64_MAX; si->end_key[0] = UINT64_MAX;
si->end_key[0] = UINT64_MAX; si->end_key[1] = UINT64_MAX;
} }
/* Seek the correct node in the radix tree. */ /* Seek the correct node in the radix tree. */