]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: fix iterating over mutated map 12395/head
authorJohn Spray <john.spray@redhat.com>
Thu, 8 Dec 2016 16:49:04 +0000 (16:49 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 8 Dec 2016 17:50:50 +0000 (17:50 +0000)
commitdb3deb80d6e4a8e8ca7a2cf6278d5d5cb24eb616
tree09bd89cfb7925c887c7b06b22dbc86f5e25fa448
parentecc36faa64ef3e7c9b41164a44a3c4da3f4c5cc2
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>
src/mon/MDSMonitor.cc