Streams: update listpack with new pointer in XDEL

This commit is contained in:
zhaozhao.zz 2018-08-04 01:06:53 +08:00
parent 39c70e728b
commit a3a1460525

View File

@ -724,6 +724,9 @@ void streamIteratorRemoveEntry(streamIterator *si, streamID *current) {
p = lpNext(lp,p); /* Seek deleted field. */ p = lpNext(lp,p); /* Seek deleted field. */
aux = lpGetInteger(p); aux = lpGetInteger(p);
lp = lpReplaceInteger(lp,&p,aux+1); lp = lpReplaceInteger(lp,&p,aux+1);
/* Update the listpack with the new pointer. */
raxInsert(si->stream->rax,si->ri.key,si->ri.key_len,lp,NULL);
} }
/* Update the number of entries counter. */ /* Update the number of entries counter. */