Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed May 27, 2024
1 parent 4c30a8b commit ef10245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/cmd_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "config/config.h"
#include "error_constants.h"
#include "server/redis_connection.h"
#include "server/redis_reply.h"
#include "server/server.h"
#include "stats/disk_stats.h"
#include "storage/rdb.h"
Expand Down Expand Up @@ -740,7 +741,8 @@ class CommandHello final : public Commander {
// kvrocks only supports REPL2 by now, but for supporting some
// `hello 3`, it will not report error when using 3.
if (protocol < 2 || protocol > 3) {
return {Status::NotOK, "NOPROTO unsupported protocol version"};
conn->Reply(redis::Error("NOPROTO unsupported protocol version"));
return Status::OK();
}
}

Expand Down

0 comments on commit ef10245

Please sign in to comment.