mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Streams: update listpack with new pointer in XDEL
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user