mon: track osd_epoch of all MonSessions
previously, we only track the osd_epoch for OSD peers. but other
MonClients who receives osdmaps can also benefit from osd_epoch.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
de43a02e06650a552f048dc8acd17f255126fed9)
Conflicts:
src/mon/OSDMonitor.cc:
do not assume that the MonSession is always available when
OSDMonitor::send_incremental() is called. as when the
connection to the mon client is dropped, the Monitor is
aware of this, but not the OSDMonitor.