diff --git a/src/lib/replication/service/raft_repl_service.cpp b/src/lib/replication/service/raft_repl_service.cpp index 026619fef..dad370578 100644 --- a/src/lib/replication/service/raft_repl_service.cpp +++ b/src/lib/replication/service/raft_repl_service.cpp @@ -160,7 +160,7 @@ void RaftReplService::raft_group_config_found(sisl::byte_view const& buf, void* auto rdev = std::dynamic_pointer_cast< RaftReplDev >(*v); auto listener = m_repl_app->create_repl_dev_listener(group_id); - listener->set_repl_dev(rdev.get()); + listener->set_repl_dev(rdev); rdev->attach_listener(std::move(listener)); rdev->use_config(std::move(group_config)); }