From 733835937447bae1212374b30ea411d31cdefb4e Mon Sep 17 00:00:00 2001 From: wsehjk Date: Mon, 22 Jan 2024 17:01:29 +0800 Subject: [PATCH] braft LeaderId Signed-off-by: wsehjk --- curvefs/src/metaserver/copyset/raft_cli_service2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curvefs/src/metaserver/copyset/raft_cli_service2.cpp b/curvefs/src/metaserver/copyset/raft_cli_service2.cpp index 8e4a03565c..d04d7e84e4 100644 --- a/curvefs/src/metaserver/copyset/raft_cli_service2.cpp +++ b/curvefs/src/metaserver/copyset/raft_cli_service2.cpp @@ -175,7 +175,7 @@ void RaftCliService2::GetLeader(google::protobuf::RpcController* controller, brpc::ClosureGuard doneGuard(done); brpc::Controller* cntl = static_cast(controller); - std::vector> nodes; + std::vector> nodes; // braft Node braft::NodeManager* const nm = braft::NodeManager::GetInstance(); GroupId groupId = ToGroupId(request->poolid(), request->copysetid()); @@ -187,7 +187,7 @@ void RaftCliService2::GetLeader(google::protobuf::RpcController* controller, for (size_t i = 0; i < nodes.size(); ++i) { braft::PeerId leaderId = nodes[i]->leader_id(); - if (!leaderId.is_empty()) { + if (!leaderId.is_empty()) { // check LeaderId response->mutable_leader()->set_address(leaderId.to_string()); return; }