Skip to content

Commit

Permalink
add group id to log_replay_done_handler_t
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Mar 6, 2025
1 parent da03457 commit 65289b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/homestore/replication/repl_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ using fetch_data_handler_t = folly::Future< std::error_code > (*)(int64_t lsn, c
std::vector< sisl::sg_list >& sgs_vec);
using no_space_left_handler_t = folly::Future< folly::Unit > (*)(uint32_t pdev_id, chunk_num_t chunk_id);

using log_replay_done_handler_t = void (*)();
using log_replay_done_handler_t = void (*)(const group_id_t& group_id);

// magic num comes from the first 8 bytes of 'echo homestore_resync_data | md5sum'
static constexpr uint64_t HOMESTORE_RESYNC_DATA_MAGIC = 0xa65dbd27c213f327;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/replication/service/raft_repl_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void RaftReplService::start() {
if (auto listener = rdev->get_listener(); listener) {
if (auto log_replay_done_handler = listener->get_event_handler(event_type_t::RD_LOG_REPLAY_DONE);
log_replay_done_handler) {
reinterpret_cast< log_replay_done_handler_t >(log_replay_done_handler)();
reinterpret_cast< log_replay_done_handler_t >(log_replay_done_handler)(rdev->group_id());
}
}

Expand Down

0 comments on commit 65289b2

Please sign in to comment.