summaryrefslogtreecommitdiff
path: root/src/t_hash.c
diff options
context:
space:
mode:
authorItamar Haber <itamar@redislabs.com>2017-12-05 18:14:59 +0200
committerItamar Haber <itamar@redislabs.com>2017-12-05 18:14:59 +0200
commit8b51121998bd5b0f3f4992548ad5f4a929c2a9d7 (patch)
tree4b48521968561f0f3e02a1da5923bbb1f8702567 /src/t_hash.c
parent51eb6cb39513188001bd24e693868451ae267340 (diff)
parent62a4b817c6e83eedf96a451f45dd943099258fd0 (diff)
downloadredis-8b51121998bd5b0f3f4992548ad5f4a929c2a9d7.tar.gz
Merge remote-tracking branch 'upstream/unstable' into help_subcommands
Diffstat (limited to 'src/t_hash.c')
-rw-r--r--src/t_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_hash.c b/src/t_hash.c
index 700a6233a..be73932c5 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -287,8 +287,8 @@ int hashTypeDelete(robj *o, sds field) {
if (fptr != NULL) {
fptr = ziplistFind(fptr, (unsigned char*)field, sdslen(field), 1);
if (fptr != NULL) {
- zl = ziplistDelete(zl,&fptr);
- zl = ziplistDelete(zl,&fptr);
+ zl = ziplistDelete(zl,&fptr); /* Delete the key. */
+ zl = ziplistDelete(zl,&fptr); /* Delete the value. */
o->ptr = zl;
deleted = 1;
}