Skip to content

Commit

Permalink
[Automated] Merged refs/heads/k8s-sync-2024-10-21-1237-6a32fad1823860…
Browse files Browse the repository at this point in the history
…27ac9aca12c3f3a5ad09f64f6a into target main
  • Loading branch information
github-actions[bot] authored Oct 22, 2024
2 parents 76de779 + 84206cc commit 89b25bf
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 89b25bf

Please sign in to comment.