Skip to content

Commit

Permalink
Sync from server repo (00dccae0d9a)
Browse files Browse the repository at this point in the history
  • Loading branch information
releng committed Oct 21, 2024
1 parent 76de779 commit 84206cc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vclusterops/fetch_node_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,19 @@ func buildNodeStateList(vdb *VCoordinationDatabase, forDownDatabase bool) []Node
}
}

for _, vnode := range vdb.UnboundNodes {
var nodeInfo NodeInfo
nodeInfo.Address = vnode.Address
nodeInfo.CatalogPath = vnode.CatalogPath
nodeInfo.IsPrimary = false
nodeInfo.Name = vnode.Name
nodeInfo.Sandbox = vnode.Sandbox
nodeInfo.State = util.NodeDownState
nodeInfo.Subcluster = vnode.Subcluster
nodeStates = append(nodeStates, nodeInfo)
scMap[vnode.Subcluster] = false
}

// update IsPrimary of the nodes for running database
if !forDownDatabase {
for i := 0; i < len(nodeStates); i++ {
Expand Down

0 comments on commit 84206cc

Please sign in to comment.