mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Stream: update the listpack pointer in streamTrimByLength().
This commit is contained in:
parent
efcbc01fbd
commit
84b281209a
@ -422,6 +422,9 @@ int64_t streamTrimByLength(stream *s, size_t maxlen, int approx) {
|
|||||||
/* TODO: perform a garbage collection. */
|
/* TODO: perform a garbage collection. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Update the listpack with the new pointer. */
|
||||||
|
raxInsert(s->rax,ri.key,ri.key_len,lp,NULL);
|
||||||
|
|
||||||
break; /* If we are here, there was enough to delete in the current
|
break; /* If we are here, there was enough to delete in the current
|
||||||
node, so no need to go to the next node. */
|
node, so no need to go to the next node. */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user