From ca0735b49bcd6d5000f05aa47c6dc6d5c20199d4 Mon Sep 17 00:00:00 2001 From: Jilong Kou Date: Tue, 26 Nov 2024 10:05:50 +0800 Subject: [PATCH] Modify ReplicationStateMachine::on_destroy signature to fit latest HomeStore change --- src/lib/homestore_backend/replication_state_machine.cpp | 2 +- src/lib/homestore_backend/replication_state_machine.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/homestore_backend/replication_state_machine.cpp b/src/lib/homestore_backend/replication_state_machine.cpp index e7c7f89..2945063 100644 --- a/src/lib/homestore_backend/replication_state_machine.cpp +++ b/src/lib/homestore_backend/replication_state_machine.cpp @@ -154,7 +154,7 @@ void ReplicationStateMachine::on_replace_member(const homestore::replica_member_ home_object_->on_pg_replace_member(repl_dev()->group_id(), member_out, member_in); } -void ReplicationStateMachine::on_destroy() { +void ReplicationStateMachine::on_destroy(const group_id_t& group_id) { // TODO:: add the logic to handle destroy LOGI("replica destroyed"); } diff --git a/src/lib/homestore_backend/replication_state_machine.hpp b/src/lib/homestore_backend/replication_state_machine.hpp index 96acb1f..afc9131 100644 --- a/src/lib/homestore_backend/replication_state_machine.hpp +++ b/src/lib/homestore_backend/replication_state_machine.hpp @@ -173,7 +173,7 @@ class ReplicationStateMachine : public homestore::ReplDevListener { const homestore::replica_member_info& member_in) override; /// @brief Called when the replica is being destroyed by nuraft; - void on_destroy() override; + void on_destroy(const group_id_t& group_id) override; /// Not Implemented /// @brief Called when the snapshot is being created by nuraft;