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
9e5f45f2
Unverified
Commit
9e5f45f2
authored
Jun 22, 2023
by
Gabi Ganam
Committed by
GitHub
Jun 22, 2023
Browse files
Fix typos in comments (#12338)
parent
47f32bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/t_list.c
View file @
9e5f45f2
...
...
@@ -240,7 +240,7 @@ listTypeIterator *listTypeInitIterator(robj *subject, long index,
li
->
direction
=
direction
;
li
->
iter
=
NULL
;
/* LIST_HEAD means start at TAIL and move *towards* head.
* LIST_TAIL means start at HEAD and move *towards tail. */
* LIST_TAIL means start at HEAD and move *towards
*
tail. */
if
(
li
->
encoding
==
OBJ_ENCODING_QUICKLIST
)
{
int
iter_direction
=
direction
==
LIST_HEAD
?
AL_START_TAIL
:
AL_START_HEAD
;
li
->
iter
=
quicklistGetIteratorAtIdx
(
li
->
subject
->
ptr
,
...
...
src/t_stream.c
View file @
9e5f45f2
...
...
@@ -461,7 +461,7 @@ int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_
}
/* Avoid overflow when trying to add an element to the stream (listpack
* can only host up to 32bit length st
t
rings, and also a total listpack size
* can only host up to 32bit length strings, and also a total listpack size
* can't be bigger than 32bit length. */
size_t
totelelen
=
0
;
for
(
int64_t
i
=
0
;
i
<
numfields
*
2
;
i
++
)
{
...
...
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