GehaFearless commented on code in PR #1658:
URL: 
https://github.com/apache/incubator-pegasus/pull/1658#discussion_r1474330286


##########
src/meta/load_balance_policy.cpp:
##########
@@ -257,17 +271,17 @@ bool 
load_balance_policy::move_primary(std::unique_ptr<flow_path> path)
 
     int current = path->_prev.back();
     if (!calc_disk_load(
-            nodes, apps, path->_app->app_id, address_vec[current], true, 
*current_load)) {
+            nodes, apps, path->_app->app_id, host_port_vec[current], true, 
*current_load)) {
         LOG_WARNING("stop move primary as some replica infos aren't collected, 
node({}), app({})",
-                    address_vec[current],
+                    host_port_vec[current].to_string(),
                     path->_app->get_logname());
         return false;
     }
 
     int plan_moving = path->_flow.back();
     while (path->_prev[current] != 0) {
-        rpc_address from = address_vec[path->_prev[current]];
-        rpc_address to = address_vec[current];
+        host_port from = host_port_vec[path->_prev[current]];

Review Comment:
   auto



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to