Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Jul 26, 2024
1 parent e674275 commit f4312bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/meta/meta_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions src/meta/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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),
Expand Down

0 comments on commit f4312bf

Please sign in to comment.