MonmapMonitor::try_enable_stretch_mode() was accidentally writing into the
pending_map even when commit was false. Whoops!
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
ceph_assert(!commit);
return;
}
- pending_map.disallowed_leaders.insert(tiebreaker_mon);
- pending_map.tiebreaker_mon = tiebreaker_mon;
- pending_map.stretch_mode_enabled = true;
+ if (commit) {
+ pending_map.disallowed_leaders.insert(tiebreaker_mon);
+ pending_map.tiebreaker_mon = tiebreaker_mon;
+ pending_map.stretch_mode_enabled = true;
+ }
*okay = true;
}