]> git.saurik.com Git - redis.git/blobdiff - src/t_hash.c
rewrite INCRBYFLOAT as SETs for AOF/replication
[redis.git] / src / t_hash.c
index 3ccdfd142c81ac9a4328fe1f8fcbfaaf042458ee..eebb66f3638bc395aa42e2352b5fcd01319baf5d 100644 (file)
@@ -55,7 +55,7 @@ int hashTypeGet(robj *o, robj *key, robj **objval, unsigned char **v,
     } else {
         dictEntry *de = dictFind(o->ptr,key);
         if (de == NULL) return -1;
-        *objval = dictGetEntryVal(de);
+        *objval = dictGetVal(de);
     }
     return o->encoding;
 }
@@ -206,9 +206,9 @@ int hashTypeCurrent(hashTypeIterator *hi, int what, robj **objval, unsigned char
         }
     } else {
         if (what & REDIS_HASH_KEY)
-            *objval = dictGetEntryKey(hi->de);
+            *objval = dictGetKey(hi->de);
         else
-            *objval = dictGetEntryVal(hi->de);
+            *objval = dictGetVal(hi->de);
     }
     return hi->encoding;
 }