summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2010-12-10 15:17:55 +0100
committerantirez <antirez@gmail.com>2010-12-10 15:17:55 +0100
commit3d24304ff930fd3392a63b79ed6037ebab94b742 (patch)
tree0eeaf7c1c4651e2efa90aef3f9b87bb09ccffcad /src/sort.c
parent1b508da7ca7cb8e999a557bd0bf18875e0a40972 (diff)
downloadredis-3d24304ff930fd3392a63b79ed6037ebab94b742.tar.gz
HGET HMGET are now COW friendly, plus API refactoring and changes needed for the new implementation.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 355a0db64..a44a6d63b 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -76,7 +76,7 @@ robj *lookupKeyByPattern(redisDb *db, robj *pattern, robj *subst) {
/* Retrieve value from hash by the field name. This operation
* already increases the refcount of the returned object. */
initStaticStringObject(fieldobj,((char*)&fieldname)+(sizeof(struct sdshdr)));
- o = hashTypeGet(o, &fieldobj);
+ o = hashTypeGetObject(o, &fieldobj);
} else {
if (o->type != REDIS_STRING) return NULL;