Streams: state machine for reverse iteration WIP 1.

This commit is contained in:
antirez
2017-11-17 13:24:20 +01:00
parent 3c5d773f82
commit ee3490ec48
4 changed files with 98 additions and 42 deletions

View File

@ -1035,7 +1035,7 @@ int rewriteHashObject(rio *r, robj *key, robj *o) {
* The function returns 0 on error, 1 on success. */
int rewriteStreamObject(rio *r, robj *key, robj *o) {
streamIterator si;
streamIteratorStart(&si,o->ptr,NULL,NULL);
streamIteratorStart(&si,o->ptr,NULL,NULL,0);
streamID id;
int64_t numfields;