PragmaTwice commented on code in PR #2828:
URL: https://github.com/apache/kvrocks/pull/2828#discussion_r2009520112
##########
src/commands/cmd_key.cc:
##########
@@ -336,6 +340,56 @@ class CommandPersist : public Commander {
}
};
+class CommandDelPrefix : public Commander {
+ public:
+ Status Execute(engine::Context &ctx, Server *srv, redis::Connection *conn,
std::string *output) override {
+ // Suppress unused parameter warnings
+ (void)ctx;
+ (void)conn;
+
+ if (args_.size() < 2) return {Status::NotOK, "Missing prefix argument"};
+
+ // Placeholder for cluster mode check
+ // if (srv->IsClusterMode()) {
+ // return {Status::NotOK, "delprefix command is disabled in cluster mode
to avoid inconsistencies"};
+ // }
Review Comment:
please don't put commented code block into the repo.
--
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]