Skip to content

Commit 886113e

Browse files
committed
Remove cli validation for available agents
If all agent are missing it'll be reported by the agent(s) during the backup execution.
1 parent 06640a7 commit 886113e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pbm/topo/topo.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func collectTopoCheckErrors(
107107

108108
hosts := strings.Split(uri, ",")
109109
members := make(map[NodeURI][]error, len(hosts))
110-
anyAvail := false
111110
for _, host := range hosts {
112111
a, ok := agents[host]
113112
if !ok || a.Arbiter || a.Passive {
@@ -131,16 +130,9 @@ func collectTopoCheckErrors(
131130
}
132131

133132
members[host] = errs
134-
if len(errs) == 0 {
135-
anyAvail = true
136-
}
137133
}
138134

139135
rv.Replsets[rsName] = members
140-
141-
if !anyAvail {
142-
rv.Missed = append(rv.Missed, rsName)
143-
}
144136
}
145137

146138
if rv.hasError() {

0 commit comments

Comments
 (0)