Skip to content

Commit

Permalink
Merge d42e844 into 1bde864
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvru authored Jul 25, 2024
2 parents 1bde864 + d42e844 commit de6a714
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ydb/core/blobstorage/nodewarden/distconf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ namespace NKikimr::NStorage {
}

if (change && NodeListObtained && StorageConfigLoaded) {
if (IsSelfStatic) {
UpdateBound(SelfNode.NodeId(), SelfNode, *StorageConfig, nullptr);
IssueNextBindRequest();
}
processPendingEvents();
}
}
Expand Down
1 change: 0 additions & 1 deletion ydb/core/blobstorage/nodewarden/distconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ namespace NKikimr::NStorage {
std::deque<TAutoPtr<IEventHandle>> PendingEvents;
std::vector<ui32> NodeIds;
TNodeIdentifier SelfNode;
bool SelfBound = false;

// scatter tasks
ui64 NextScatterCookie = RandomNumber<ui64>();
Expand Down
3 changes: 1 addition & 2 deletions ydb/core/blobstorage/nodewarden/distconf_binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ namespace NKikimr::NStorage {
// issue updates
NodeIds = std::move(nodeIds);
BindQueue.Update(NodeIds);
if (NodeListObtained && StorageConfigLoaded && !std::exchange(SelfBound, true)) {
UpdateBound(SelfNode.NodeId(), SelfNode, *StorageConfig, nullptr);
if (NodeListObtained && StorageConfigLoaded) {
IssueNextBindRequest();
}
}
Expand Down

0 comments on commit de6a714

Please sign in to comment.