Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9fe7cd8f
Unverified
Commit
9fe7cd8f
authored
Oct 02, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Oct 02, 2018
Browse files
Merge pull request #5210 from soloestoy/raxinsert-in-xdel
Streams: update listpack with new pointer in XDEL
parents
2b09884f
a3a14605
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
9fe7cd8f
...
@@ -724,6 +724,9 @@ void streamIteratorRemoveEntry(streamIterator *si, streamID *current) {
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment