Skip to content

Commit

Permalink
Modify ReplicationStateMachine::on_destroy signature to fit latest Ho…
Browse files Browse the repository at this point in the history
…meStore change
  • Loading branch information
koujl committed Nov 26, 2024
1 parent 295cbf7 commit ca0735b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/homestore_backend/replication_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/homestore_backend/replication_state_machine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca0735b

Please sign in to comment.