Skip to content

Commit

Permalink
refactor(FQDN): Minor refactor on server_state
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Sep 23, 2024
1 parent 2bd86c1 commit 7fa485c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/meta/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,7 @@ void server_state::downgrade_stateless_nodes(std::shared_ptr<app_state> &app,
partition_configuration &pc = req->config;

unsigned i = 0;
// TODO(yingchun): also check pc.secondaries
for (; i < pc.hp_secondaries.size(); ++i) {
if (pc.hp_secondaries[i] == node) {
SET_OBJ_IP_AND_HOST_PORT(*req, node, pc, last_drops[i]);
Expand Down
1 change: 1 addition & 0 deletions src/meta/server_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ class server_state
const host_port &node);
void
downgrade_stateless_nodes(std::shared_ptr<app_state> &app, int pidx, const host_port &node);

void
on_partition_node_dead(std::shared_ptr<app_state> &app, int pidx, const dsn::host_port &node);
void send_proposal(const host_port &target, const configuration_update_request &proposal);
Expand Down

0 comments on commit 7fa485c

Please sign in to comment.