!35205 Bugfix for the recovery of compute graph node

Merge pull request !35205 from chengang/bugfix_for_recovery
This commit is contained in:
i-robot 2022-05-31 03:01:37 +00:00 committed by Gitee
commit ee8f2f2241
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -159,10 +159,10 @@ MessageBase *const MetaServerNode::ProcessRegister(MessageBase *const message) {
MS_LOG(ERROR) << "The node: " << node_id << " have been registered before.";
RegistrationRespMessage reg_resp_msg;
reg_resp_msg.set_success(false);
reg_resp_msg.set_success(true);
std::string content = reg_resp_msg.SerializeAsString();
auto response = CreateMessage(meta_server_addr_.GetUrl(), MessageName::kInvalidNode, content);
auto response = CreateMessage(meta_server_addr_.GetUrl(), MessageName::kSuccess, content);
MS_EXCEPTION_IF_NULL(response);
return response.release();
}