diff options
author | antirez <antirez@gmail.com> | 2017-11-28 18:38:49 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-11-28 18:39:00 +0100 |
commit | 851e9fc48b5155de9fb47f0185b3523b59373a97 (patch) | |
tree | bb97f5d7cd03cc726460723daecc43abd171ed7a | |
parent | aeee039a87e5515e8bb68836451c69b0d7839523 (diff) | |
download | redis-851e9fc48b5155de9fb47f0185b3523b59373a97.tar.gz |
t_hash.c: clarify calling two times the same function.
-rw-r--r-- | src/t_hash.c | 4 |
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; } |