]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: send updated monmap to its subscribers 11457/head
authorKefu Chai <kchai@redhat.com>
Thu, 13 Oct 2016 05:19:27 +0000 (13:19 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Nov 2016 07:43:43 +0000 (15:43 +0800)
commite1694d6e85694ee8750b2af211505b89b3d6f0c8
tree69e677cadb4b1f48a3eb42702240921d6645b372
parentf776699fd00ff5f0deea15ec4f2efb991831b055
mon: send updated monmap to its subscribers

prior to this change, we sends monmap when serving the subscription
requests, but the updates are not sent to the subscribers anymore.
so we need to send latest monmap to subscribes and update the
subscription status accordingly when the monmap is updated.

http://tracker.ceph.com/issues/17558
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c2b348b12c47ba505f72228ae0ea9b1a1b674719)
Conflicts:
src/mon/Monitor.cc: resolve conflicts
src/mon/MonmapMonitor.cc: remove C++11-ism
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc
src/mon/MonmapMonitor.h