LiuYuHui commented on code in PR #2173:
URL: https://github.com/apache/kvrocks/pull/2173#discussion_r1527464814
##########
src/cluster/cluster.h:
##########
@@ -111,4 +118,6 @@ class Cluster {
std::map<int, std::string> migrated_slots_;
std::set<int> imported_slots_;
+
+ ClusterMode cluster_mode_{ClusterMode::READONLY};
Review Comment:
thanks, fixed it.
##########
src/commands/cmd_cluster.cc:
##########
@@ -292,8 +292,25 @@ static uint64_t GenerateClusterFlag(const
std::vector<std::string> &args) {
return 0;
}
+class CommandReadOnly : public Commander {
+ public:
+ Status Execute(Server *srv, Connection *conn, std::string *output) override {
+ *output = redis::SimpleString("READONLY");
Review Comment:
thanks, fixed it.
--
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]