message: Restrict input arguments for "SLAVEOF" and "DBSLAVEOF"
diff: @@ -54,6 +54,11 @@ void SlaveofCmd::DoInitial() {
  return;
  }
  + if (argv_.size() > 4) {
  + res_.SetRes(CmdRes::kWrongNum, kCmdNameSlaveof);
  + return;
  + }
  +
  if (argv_.size() == 3
  && !strcasecmp(argv_[1].data(), "no")
  && !strcasecmp(argv_[2].data(), "one")) {
  @@ -136,6 +141,11 @@ void DbSlaveofCmd::DoInitial() {
  return;
  }
  + if (argv_.size() > 4) {
  + res_.SetRes(CmdRes::kWrongNum, kCmdNameDbSlaveof);
  + return;
  + }
  +
  db_name_ = argv_[1];
  if (!g_pika_server->IsTableExist(db_name_)) {
  res_.SetRes(CmdRes::kErrOther, "Invaild db name");
  