From 7fa485ca7d442902bc967a85b8ea4afc0116dde6 Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Mon, 29 Apr 2024 16:43:35 +0800 Subject: [PATCH] refactor(FQDN): Minor refactor on server_state --- src/meta/server_state.cpp | 1 + src/meta/server_state.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/meta/server_state.cpp b/src/meta/server_state.cpp index 68bc786187..60b5fe57e0 100644 --- a/src/meta/server_state.cpp +++ b/src/meta/server_state.cpp @@ -1938,6 +1938,7 @@ void server_state::downgrade_stateless_nodes(std::shared_ptr &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]); diff --git a/src/meta/server_state.h b/src/meta/server_state.h index a787328f73..bb6cadffb6 100644 --- a/src/meta/server_state.h +++ b/src/meta/server_state.h @@ -286,6 +286,7 @@ class server_state const host_port &node); void downgrade_stateless_nodes(std::shared_ptr &app, int pidx, const host_port &node); + void on_partition_node_dead(std::shared_ptr &app, int pidx, const dsn::host_port &node); void send_proposal(const host_port &target, const configuration_update_request &proposal);