mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 11:11:20 +00:00
Modules: a few fixes for the zset iterator.
This commit is contained in:
@ -1366,7 +1366,7 @@ int RM_ZsetRangeNext(RedisModuleKey *key) {
|
||||
return 0;
|
||||
}
|
||||
next = saved_next;
|
||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_SCORE) {
|
||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) {
|
||||
if (!zzlLexValueLteMax(next,&key->zlrs)) {
|
||||
key->zer = 1;
|
||||
return 0;
|
||||
@ -1429,7 +1429,7 @@ int RM_ZsetRangePrev(RedisModuleKey *key) {
|
||||
return 0;
|
||||
}
|
||||
prev = saved_prev;
|
||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_SCORE) {
|
||||
} else if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) {
|
||||
if (!zzlLexValueGteMin(prev,&key->zlrs)) {
|
||||
key->zer = 1;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user