From 1a4034363bc7e773d099ce603c564b4cf3666fc1 Mon Sep 17 00:00:00 2001 From: levy5307 Date: Fri, 23 Jul 2021 21:34:49 +0800 Subject: [PATCH] fix --- src/meta/greedy_load_balancer.cpp | 4 ++-- src/meta/greedy_load_balancer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meta/greedy_load_balancer.cpp b/src/meta/greedy_load_balancer.cpp index edc8011fa2..7e5b030313 100644 --- a/src/meta/greedy_load_balancer.cpp +++ b/src/meta/greedy_load_balancer.cpp @@ -836,7 +836,7 @@ void greedy_load_balancer::greedy_balancer(const bool balance_checker) } if (!balance_checker) { - cluster_balancer(); + balance_cluster(); } } @@ -919,7 +919,7 @@ void greedy_load_balancer::app_balancer(bool balance_checker) } } -void greedy_load_balancer::cluster_balancer() +void greedy_load_balancer::balance_cluster() { const app_mapper &apps = *t_global_view->apps; for (const auto &kv : apps) { diff --git a/src/meta/greedy_load_balancer.h b/src/meta/greedy_load_balancer.h index 6f35a1476e..c4ec51989c 100644 --- a/src/meta/greedy_load_balancer.h +++ b/src/meta/greedy_load_balancer.h @@ -148,7 +148,7 @@ class greedy_load_balancer : public simple_load_balancer void app_balancer(bool balance_checker); - void cluster_balancer(); + void balance_cluster(); bool cluster_replica_balance(const cluster_balance_type type);