Skip to content

Commit b609e82

Browse files
committed
Enable distconf by default and fix race issue KIKIMR-19031
1 parent 9b305e0 commit b609e82

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ydb/core/blobstorage/nodewarden/distconf.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ namespace NKikimr::NStorage {
173173
break;
174174
}
175175

176-
if (NodeListObtained && StorageConfigLoaded && change) {
176+
if (change && NodeListObtained && StorageConfigLoaded) {
177177
UpdateBound(SelfNode.NodeId(), SelfNode, *StorageConfig, nullptr);
178178
IssueNextBindRequest();
179179
processPendingEvents();
@@ -202,7 +202,6 @@ namespace NKikimr::NStorage {
202202
}
203203

204204
void TNodeWarden::StartDistributedConfigKeeper() {
205-
return;
206205
DistributedConfigKeeperId = Register(new TDistributedConfigKeeper(Cfg, StorageConfig));
207206
}
208207

ydb/core/blobstorage/nodewarden/distconf_binding.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace NKikimr::NStorage {
5858
// issue updates
5959
NodeIds = std::move(nodeIds);
6060
BindQueue.Update(NodeIds);
61-
if (StorageConfig) {
61+
if (NodeListObtained && StorageConfigLoaded) {
6262
IssueNextBindRequest();
6363
}
6464
}

0 commit comments

Comments
 (0)