diff options
author | antirez <antirez@gmail.com> | 2018-06-15 13:14:57 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-06-18 12:31:10 +0200 |
commit | e9bb30fd859ed4e9e3e6434207dedbc251086858 (patch) | |
tree | 0ac8972fefe6911dee8c7376e14c611fcc105e1c /src/geo.c | |
parent | fd0ee469ab165d0e005e9fe1fca1c4f5c604cd56 (diff) | |
download | redis-new-keyspace.tar.gz |
Experimental: new keyspace and expire algorithm.new-keyspace
This is an alpha quality implementation of a new keyspace representation
and a new expire algorithm for Redis.
This work is described here:
https://gist.github.com/antirez/b2eb293819666ee104c7fcad71986eb7
Diffstat (limited to 'src/geo.c')
-rw-r--r-- | src/geo.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -466,8 +466,8 @@ void georadiusGeneric(client *c, int flags) { /* Look up the requested zset */ robj *zobj = NULL; - if ((zobj = lookupKeyReadOrReply(c, key, shared.null[c->resp])) == NULL || - checkType(c, zobj, OBJ_ZSET)) { + if ((zobj = lookupKeyReadOrReply(c, key, NULL, shared.null[c->resp])) + == NULL || checkType(c, zobj, OBJ_ZSET)) { return; } @@ -701,7 +701,7 @@ void geohashCommand(client *c) { int j; /* Look up the requested zset */ - robj *zobj = lookupKeyRead(c->db, c->argv[1]); + robj *zobj = lookupKeyRead(c->db, c->argv[1], NULL); if (zobj && checkType(c, zobj, OBJ_ZSET)) return; /* Geohash elements one after the other, using a null bulk reply for @@ -754,7 +754,7 @@ void geoposCommand(client *c) { int j; /* Look up the requested zset */ - robj *zobj = lookupKeyRead(c->db, c->argv[1]); + robj *zobj = lookupKeyRead(c->db, c->argv[1], NULL); if (zobj && checkType(c, zobj, OBJ_ZSET)) return; /* Report elements one after the other, using a null bulk reply for @@ -797,7 +797,7 @@ void geodistCommand(client *c) { /* Look up the requested zset */ robj *zobj = NULL; - if ((zobj = lookupKeyReadOrReply(c, c->argv[1], shared.null[c->resp])) + if ((zobj = lookupKeyReadOrReply(c, c->argv[1], NULL, shared.null[c->resp])) == NULL || checkType(c, zobj, OBJ_ZSET)) return; /* Get the scores. We need both otherwise NULL is returned. */ |