提交 dd5acb9a 编写于 作者: K KernelMaker

bugfix: zset

上级 dd995ba6
...@@ -294,7 +294,7 @@ static nemo::Status DoScoreStrRange(std::string begin_score, std::string end_sco ...@@ -294,7 +294,7 @@ static nemo::Status DoScoreStrRange(std::string begin_score, std::string end_sco
if (begin_score == "-inf") { if (begin_score == "-inf") {
*min_score = nemo::ZSET_SCORE_MIN; *min_score = nemo::ZSET_SCORE_MIN;
} else if (begin_score == "inf" || begin_score == "+inf") { } 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)) { } else if (!slash::string2d(begin_score.data(), begin_score.size(), min_score)) {
return nemo::Status::Corruption("min or max is not a float"); return nemo::Status::Corruption("min or max is not a float");
} }
...@@ -957,17 +957,3 @@ void ZRemrangebylexCmd::Do() { ...@@ -957,17 +957,3 @@ void ZRemrangebylexCmd::Do() {
return; return;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册