diff options
author | Matt Stancliff <matt@genges.com> | 2014-05-12 14:38:17 -0400 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-06-22 09:07:13 +0200 |
commit | 7f4ac3d19c28e0a7a608fe94411e92bc59097e11 (patch) | |
tree | 03da237a4b47c189462d79ca915fa828a11bf680 /src/t_zset.c | |
parent | 821a986643717018cad8af9f35cba49818e60294 (diff) | |
download | redis-7f4ac3d19c28e0a7a608fe94411e92bc59097e11.tar.gz |
[In-Progress] Add Geo Commands
Current todo:
- replace functions in zset.{c,h} with a new unified Redis
zset access API.
Once we get the zset interface fixed, we can squash
relevant commits in this branch and have one nice commit
to merge into unstable.
This commit adds:
- Geo commands
- Tests; runnable with: ./runtest --single unit/geo
- Geo helpers in deps/geohash-int/
- src/geo.{c,h} and src/geojson.{c,h} implementing geo commands
- Updated build configurations to get everything working
- TEMPORARY: src/zset.{c,h} implementing zset score and zset
range reading without writing to client output buffers.
- Modified linkage of one t_zset.c function for use in zset.c
Conflicts:
src/Makefile
src/redis.c
Diffstat (limited to 'src/t_zset.c')
-rw-r--r-- | src/t_zset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_zset.c b/src/t_zset.c index dbc561a93..b900a9ccb 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -213,7 +213,7 @@ static int zslValueGteMin(double value, zrangespec *spec) { return spec->minex ? (value > spec->min) : (value >= spec->min); } -static int zslValueLteMax(double value, zrangespec *spec) { +int zslValueLteMax(double value, zrangespec *spec) { return spec->maxex ? (value < spec->max) : (value <= spec->max); } |