Skip to content

Commit a67e880

Browse files
committed
disable restart for destroy-pending repl-dev
1 parent b38f956 commit a67e880

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class HomestoreConan(ConanFile):
1111
name = "homestore"
12-
version = "6.5.22"
12+
version = "6.5.23"
1313

1414
homepage = "https://github.com/eBay/Homestore"
1515
description = "HomeStore Storage Engine"

src/lib/replication/service/raft_repl_service.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ void RaftReplService::start() {
128128
// We need to first load the repl_dev with its config and then attach the raft config to that repl dev.
129129
for (auto const& [buf, mblk] : m_config_sb_bufs) {
130130
auto rdev = raft_group_config_found(buf, voidptr_cast(mblk));
131-
rdev->on_restart();
131+
// if repl_dev is in destroy_pending state, it will not be loaded.
132+
if (rdev) rdev->on_restart();
132133
}
133134
m_config_sb_bufs.clear();
134135
LOGINFO("Repl devs load completed, calling upper layer on_repl_devs_init_completed");

0 commit comments

Comments
 (0)