git-hulk commented on code in PR #2273:
URL: https://github.com/apache/kvrocks/pull/2273#discussion_r1582064816


##########
src/commands/cmd_cluster.cc:
##########
@@ -338,9 +338,19 @@ class CommandReadWrite : public Commander {
   }
 };
 
+class CommandAsking : public Commander {
+ public:
+  Status Execute(Server *srv, Connection *conn, std::string *output) override {
+    conn->EnableFlag(redis::Connection::kAsking);
+    *output = redis::SimpleString("OK");

Review Comment:
   It should align with the Redis behavior for now, since it only allows the 
ASKING flag connection to query keys of the importing slot.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to