mon/MDSMonitor: fix iterating over mutated map #12395

Merged
merged 1 commit into from Dec 14, 2016

Projects

None yet

2 participants

@jcsp
Contributor
jcsp commented Dec 8, 2016

If a standby is promoted, this was modifying the
standby_daemons map that we were iterating over
in maybe_promote_standby.

Fixes: http://tracker.ceph.com/issues/18166
Signed-off-by: John Spray john.spray@redhat.com

@jcsp jcsp mon/MDSMonitor: fix iterating over mutated map
If a standby is promoted, this was modifying the
standby_daemons map that we were iterating over
in maybe_promote_standby.

Fixes: http://tracker.ceph.com/issues/18166
Signed-off-by: John Spray <john.spray@redhat.com>
db3deb8
@batrick
batrick approved these changes Dec 8, 2016 View changes
@batrick
Contributor
batrick commented Dec 8, 2016

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>

@jcsp jcsp merged commit cdbad50 into ceph:master Dec 14, 2016

3 checks passed

Signed-off-by all commits in this PR are signed
Details
Unmodifed Submodules submodules for project are unmodified
Details
default Build finished.
Details
@jcsp jcsp deleted the jcsp:wip-18166 branch Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment