Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Iam-WenYi committed Aug 30, 2024
1 parent 281d119 commit becb0e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cmd_kv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ void SetRangeCmd::DoCmd(PClient* client) {
client->SetRes(CmdRes::kInvalidInt);
return;
}
// Ref: https://redis.io/docs/latest/commands/setrange/
if (g_config.redis_compatible_mode && std::atoi(client->argv_[2].c_str()) > 536870911)
if (g_config.redis_compatible_mode && std::atoi(client->argv_[2].c_str()) > 536870911) // Ref: https://redis.io/docs/latest/commands/setrange/
{
client->SetRes(CmdRes::kErrOther, "When Redis compatibility mode is enabled, the offset parameter must not exceed 536870911");
return;
Expand Down
2 changes: 1 addition & 1 deletion src/kiwi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void Usage() {
std::cerr << " -p PORT, --port PORT Set the port listen on\n";
std::cerr << " -l LEVEL, --loglevel LEVEL Set the log level\n";
std::cerr << " -s ADDRESS, --slaveof ADDRESS Set the slave address\n";
std::cerr << " -c, --redis-compatible-mode Enable Redis compatibility mode\n";
std::cerr << " -c, --redis-compatible-mode Enable Redis compatibility mode\n";
std::cerr << "Examples:\n";
std::cerr << " kiwi /path/kiwi.conf\n";
std::cerr << " kiwi /path/kiwi.conf --loglevel verbose\n";
Expand Down

0 comments on commit becb0e3

Please sign in to comment.