The failed map is not changed in the first if, so the second if should be an
else.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
adba77e34c3fbf983d221729dd340afcc942778b)
do_propose = true;
}
}
- }
-
- // There were no failures to replace, so try using any available standbys
- // as standby-replay daemons.
- if (failed.empty()) {
+ } else {
+ // There were no failures to replace, so try using any available standbys
+ // as standby-replay daemons.
for (const auto &j : pending_fsmap.standby_daemons) {
const auto &gid = j.first;
const auto &info = j.second;