Skip to content

Commit b233c84

Browse files
committed
rename the local variable for clarity
1 parent ac96f57 commit b233c84

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/shell/commands/recovery.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ dsn::host_port diagnose_recommend(const dsn::replication::ddd_partition_info &pi
179179
const auto it = std::find_if(pinfo.dropped.begin(),
180180
pinfo.dropped.end(),
181181
[&node](const dsn::replication::ddd_node_info &r) {
182-
dsn::host_port hp_node;
183-
GET_HOST_PORT(r, node, hp_node);
184-
return hp_node == node;
182+
dsn::host_port hp_node_from_dropped;
183+
GET_HOST_PORT(r, node, hp_node_from_dropped);
184+
return hp_node_from_dropped == node;
185185
});
186186
if (it->is_alive && it->is_collected) {
187187
last_dropped.push_back(*it);

0 commit comments

Comments
 (0)