Skip to content

Commit

Permalink
bugfix: zset
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Jul 15, 2016
1 parent dd995ba commit dd5acb9
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/pika_zset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static nemo::Status DoScoreStrRange(std::string begin_score, std::string end_sco
if (begin_score == "-inf") {
*min_score = nemo::ZSET_SCORE_MIN;
} else if (begin_score == "inf" || begin_score == "+inf") {
*max_score = nemo::ZSET_SCORE_MAX;
*min_score = nemo::ZSET_SCORE_MAX;
} else if (!slash::string2d(begin_score.data(), begin_score.size(), min_score)) {
return nemo::Status::Corruption("min or max is not a float");
}
Expand Down Expand Up @@ -957,17 +957,3 @@ void ZRemrangebylexCmd::Do() {
return;
}















0 comments on commit dd5acb9

Please sign in to comment.