From a1a605a0d0014eaa9de5cc89e3c60b26ebedd296 Mon Sep 17 00:00:00 2001 From: Jie Yao Date: Tue, 30 Jan 2024 18:18:39 -0700 Subject: [PATCH] using shared --- src/lib/replication/service/raft_repl_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }