mirror of https://mirror.osredm.com/root/redis.git
t_hash.c: clarify calling two times the same function.
This commit is contained in:
parent
aeee039a87
commit
851e9fc48b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue