torwig commented on code in PR #778:
URL: https://github.com/apache/incubator-kvrocks/pull/778#discussion_r945318577
##########
src/redis_cmd.cc:
##########
@@ -1985,6 +1985,31 @@ class CommandSIsMember : public Commander {
}
};
+class CommandSMIsMember : public Commander {
+ public:
+ Status Execute(Server *svr, Connection *conn, std::string *output) override {
+ Redis::Set set_db(svr->storage_, conn->GetNamespace());
+ std::vector<Slice> members;
+ for (unsigned int i = 2; i < args_.size(); i++) {
Review Comment:
I'd recommend using the `size_t` type here instead of `unsigned int`.
--
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]