From 0a64602d2a7e1d26f73718914dcb24e0af30d708 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 11 Aug 2017 09:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86Maat=5Fstatus=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8=E7=B2=BE=E7=A1=AE=E7=9A=84version?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E7=95=8C=E4=BB=A3=E6=9B=BF-inf=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=BA=8F=E5=88=97=E5=8F=B7=E5=9B=9E=E6=BB=9A?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index 190a36a..cfdf6b0 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -879,7 +879,8 @@ void cleanup_update_status(redisContext *ctx, void *logger) version_upper_bound=read_redis_integer(sub_reply->element[sub_reply->elements-1]); freeReplyObject(reply); - reply=_wrap_redisCommand(ctx,"ZREMRANGEBYSCORE %s -inf %lld",rm_expire_sset,version_upper_bound); + //For maat_version reset, do NOT use -inf to upper bound intentionally. + reply=_wrap_redisCommand(ctx,"ZREMRANGEBYSCORE %s %lld %lld",rm_expire_sset,version_lower_bound,version_upper_bound); entry_num=read_redis_integer(reply); freeReplyObject(reply);