From d172f35102b741894f9dd2c60738302fd8742bd2 Mon Sep 17 00:00:00 2001 From: zilai Date: Sat, 7 Oct 2023 01:06:24 -0700 Subject: [PATCH] fix solo repldev will be nullptr in map when homestore restart --- conanfile.py | 2 +- src/lib/replication/service/repl_service_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conanfile.py b/conanfile.py index f26964a2c..1e7364867 100644 --- a/conanfile.py +++ b/conanfile.py @@ -5,7 +5,7 @@ class HomestoreConan(ConanFile): name = "homestore" - version = "4.5.3" + version = "4.5.5" homepage = "https://github.com/eBay/Homestore" description = "HomeStore Storage Engine" diff --git a/src/lib/replication/service/repl_service_impl.cpp b/src/lib/replication/service/repl_service_impl.cpp index c4316ee58..cc7c0e4a4 100644 --- a/src/lib/replication/service/repl_service_impl.cpp +++ b/src/lib/replication/service/repl_service_impl.cpp @@ -74,7 +74,7 @@ ReplicationServiceImpl::open_repl_dev(uuid_t group_id, std::unique_ptr< ReplDevL auto it = m_rd_map.find(group_id); if (it != m_rd_map.end()) { // We already loaded the ReplDev, just call the group_id and attach the listener - auto& repl_dev = it->second; + auto repl_dev = it->second; listener->set_repl_dev(repl_dev.get()); repl_dev->attach_listener(std::move(listener)); return make_async_success< shared< ReplDev > >(std::move(repl_dev));