]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: fix iterating over mutated map 13123/head
authorJohn Spray <john.spray@redhat.com>
Thu, 8 Dec 2016 16:49:04 +0000 (16:49 +0000)
committerNathan Cutler <ncutler@suse.com>
Thu, 26 Jan 2017 09:02:38 +0000 (10:02 +0100)
commitfef3de88d0381322d49ce7842f777454b0b40b63
tree1d596de24d0206ee857f2b88d5e72e3a4539d124
parent05916271c17050fd4c1ad2351b6da17d3b89fc15
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>
(cherry picked from commit db3deb80d6e4a8e8ca7a2cf6278d5d5cb24eb616)
src/mon/MDSMonitor.cc