From 73004ebb083bc327fefdee6a3befdb800c153a4e Mon Sep 17 00:00:00 2001 From: zhao liwei Date: Thu, 26 Aug 2021 14:30:26 +0800 Subject: [PATCH] feat: add copy secondary for cluster balance (#883) --- src/meta/greedy_load_balancer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/greedy_load_balancer.cpp b/src/meta/greedy_load_balancer.cpp index c635e2f99c..3c76417316 100644 --- a/src/meta/greedy_load_balancer.cpp +++ b/src/meta/greedy_load_balancer.cpp @@ -1012,7 +1012,8 @@ void greedy_load_balancer::balance_cluster() return; } - // TBD(zlw): copy primary + cluster_replica_balance( + t_global_view, cluster_balance_type::COPY_SECONDARY, *t_migration_result); } bool greedy_load_balancer::cluster_replica_balance(const meta_view *global_view,