From f4312bf3495ca2baa6dc769250e7a802dd5f15f8 Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Sat, 27 Jul 2024 00:59:56 +0800 Subject: [PATCH] fmt --- src/meta/meta_data.cpp | 3 ++- src/meta/server_state.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/meta/meta_data.cpp b/src/meta/meta_data.cpp index 9e54ef788b..9ef39680f0 100644 --- a/src/meta/meta_data.cpp +++ b/src/meta/meta_data.cpp @@ -189,7 +189,8 @@ void proposal_actions::reset_tracked_current_learner() current_learner.last_prepared_decree = invalid_decree; } -void proposal_actions::track_current_learner(const dsn::host_port &learner, const replica_info &info) +void proposal_actions::track_current_learner(const dsn::host_port &learner, + const replica_info &info) { if (empty()) { return; diff --git a/src/meta/server_state.cpp b/src/meta/server_state.cpp index dc552c328c..ed99533c0f 100644 --- a/src/meta/server_state.cpp +++ b/src/meta/server_state.cpp @@ -2595,8 +2595,9 @@ bool server_state::check_all_partitions() if (!add_secondary_proposed[i] && secondaries.empty()) { const auto &action = add_secondary_actions[i]; CHECK(action.hp_node1, ""); - if (_add_secondary_enable_flow_control && add_secondary_running_nodes[action.hp_node1] >= - _add_secondary_max_count_for_one_node) { + if (_add_secondary_enable_flow_control && + add_secondary_running_nodes[action.hp_node1] >= + _add_secondary_max_count_for_one_node) { // ignore continue; } @@ -2615,8 +2616,9 @@ bool server_state::check_all_partitions() CHECK(action.hp_node1, ""); gpid pid = add_secondary_gpids[i]; const auto *pc = get_config(_all_apps, pid); - if (_add_secondary_enable_flow_control && add_secondary_running_nodes[action.hp_node1] >= - _add_secondary_max_count_for_one_node) { + if (_add_secondary_enable_flow_control && + add_secondary_running_nodes[action.hp_node1] >= + _add_secondary_max_count_for_one_node) { LOG_INFO("do not send {} proposal for gpid({}) for flow control reason, target = " "{}, node = {}", ::dsn::enum_to_string(action.type),