From fea98072d394fdea96c1f2ebc7871df116ac2760 Mon Sep 17 00:00:00 2001 From: popstk Date: Fri, 10 Jan 2025 17:39:53 +0800 Subject: [PATCH] fix --- internal/rdb/rdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rdb/rdb.go b/internal/rdb/rdb.go index 22df5060..8ee0b121 100644 --- a/internal/rdb/rdb.go +++ b/internal/rdb/rdb.go @@ -866,7 +866,7 @@ if redis.call("ZREM", KEYS[3], ARGV[1]) == 0 then return redis.error_reply("NOT FOUND") end redis.call("ZADD", KEYS[4], ARGV[3], ARGV[1]) -local old = redis.call("ZRANGE", KEYS[4], "-inf", ARGV[4], "BYSCORE") +local old = redis.call("ZRANGEBYSCORE", KEYS[4], "-inf", ARGV[4]) if #old > 0 then for _, id in ipairs(old) do redis.call("DEL", KEYS[9] .. id)