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
851e9fc4
Commit
851e9fc4
authored
Nov 28, 2017
by
antirez
Browse files
t_hash.c: clarify calling two times the same function.
parent
aeee039a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
851e9fc4
...
@@ -287,8 +287,8 @@ int hashTypeDelete(robj *o, sds field) {
...
@@ -287,8 +287,8 @@ int hashTypeDelete(robj *o, sds field) {
if
(
fptr
!=
NULL
)
{
if
(
fptr
!=
NULL
)
{
fptr
=
ziplistFind
(
fptr
,
(
unsigned
char
*
)
field
,
sdslen
(
field
),
1
);
fptr
=
ziplistFind
(
fptr
,
(
unsigned
char
*
)
field
,
sdslen
(
field
),
1
);
if
(
fptr
!=
NULL
)
{
if
(
fptr
!=
NULL
)
{
zl
=
ziplistDelete
(
zl
,
&
fptr
);
zl
=
ziplistDelete
(
zl
,
&
fptr
);
/* Delete the key. */
zl
=
ziplistDelete
(
zl
,
&
fptr
);
zl
=
ziplistDelete
(
zl
,
&
fptr
);
/* Delete the value. */
o
->
ptr
=
zl
;
o
->
ptr
=
zl
;
deleted
=
1
;
deleted
=
1
;
}
}
...
...
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