Skip to content

Commit

Permalink
bugfix: fix the z[rev]rangebyscore's max limit
Browse files Browse the repository at this point in the history
  • Loading branch information
JacketWoo committed May 6, 2016
1 parent 069689e commit 189b904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pika_zset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void ZRangebyscoreCmd::DoInitial(PikaCmdArgsType &argv, const CmdInfo* const ptr
}

void ZRangebyscoreCmd::Do() {
if (min_score_ == nemo::ZSET_SCORE_MAX || max_score_ == nemo::ZSET_SCORE_MAX) {
if (min_score_ == nemo::ZSET_SCORE_MAX || max_score_ == nemo::ZSET_SCORE_MIN) {
res_.AppendContent("*0");
return;
}
Expand Down Expand Up @@ -418,7 +418,7 @@ void ZRevrangebyscoreCmd::DoInitial(PikaCmdArgsType &argv, const CmdInfo* const
}

void ZRevrangebyscoreCmd::Do() {
if (min_score_ == nemo::ZSET_SCORE_MAX || max_score_ == nemo::ZSET_SCORE_MAX) {
if (min_score_ == nemo::ZSET_SCORE_MAX || max_score_ == nemo::ZSET_SCORE_MIN) {
res_.AppendContent("*0");
return;
}
Expand Down

0 comments on commit 189b904

Please sign in to comment.