Merge pull request #5210 from soloestoy/raxinsert-in-xdel

Streams: update listpack with new pointer in XDEL
This commit is contained in:
Salvatore Sanfilippo 2018-10-02 16:18:55 +02:00 committed by GitHub
commit 9fe7cd8f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -724,6 +724,9 @@ void streamIteratorRemoveEntry(streamIterator *si, streamID *current) {
p = lpNext(lp,p); /* Seek deleted field. */
aux = lpGetInteger(p);
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. */