Skip to content

Commit

Permalink
bugfix: can not support capital pkcluster command (OpenAtomFoundation…
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelai authored May 30, 2020
1 parent 31a8368 commit 8e78895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pika_client_conn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,13 @@ void PikaClientConn::TryWriteResp() {
void PikaClientConn::ExecRedisCmd(const PikaCmdArgsType& argv, std::shared_ptr<std::string> resp_ptr) {
// get opt
std::string opt = argv[0];
slash::StringToLower(opt);
if (opt == kClusterPrefix) {
if (argv.size() >= 2 ) {
opt += argv[1];
slash::StringToLower(opt);
}
}
slash::StringToLower(opt);

std::shared_ptr<Cmd> cmd_ptr = DoCmd(argv, opt, resp_ptr);
// level == 0 or (cmd error) or (is_read)
Expand Down

0 comments on commit 8e78895

Please sign in to comment.