caipengbo commented on code in PR #2117:
URL: https://github.com/apache/kvrocks/pull/2117#discussion_r1502592442
##########
src/cluster/slot_migrate.cc:
##########
@@ -485,6 +497,33 @@ Status SlotMigrator::setImportStatusOnDstNode(int sock_fd,
int status) {
return Status::OK();
}
+StatusOr<bool> SlotMigrator::supporttedApplyBatchCommandOnDstNode(int sock_fd)
{
+ std::string cmd = redis::ArrayOfBulkStrings({"command", "info",
"applybatch——"});
+ auto s = util::SockSend(sock_fd, cmd);
+ if (!s.IsOK()) {
+ return s.Prefixed("failed to send command info to the destination node");
+ }
+
Review Comment:
Maybe we can support redis client lib in the future.
--
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]