]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
messages,osd: remove MPGStats::had_map_for
authorKefu Chai <kchai@redhat.com>
Mon, 18 Mar 2019 05:42:46 +0000 (13:42 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 19 Mar 2019 06:46:30 +0000 (14:46 +0800)
commit9ca1b706784dcf122259b3a0caa847a03c67ac00
treefe3c075981e49dda3c00ac6c0979d00bf66608d7
parentaffb7d396f76273e885cfdbcd363c1882496726c
messages,osd: remove MPGStats::had_map_for

MPGStats::had_map_for was added back in 7844d0e5, the last release that
still checks this field was mimic -- monitor sends OSD incremental
osdmaps if the monitor finds that the pg_stats' had_map_for is greater
than 30 and the epoch is less than that of latest osdmap.

but DaemonServer as the new consumer of MPGStats does not check
had_map_for anymore -- it simply updates the cluster state with the
pg_stats reported by OSD. and we directs OSD to mgr for sending pg_stats
since mimic. so, we can safely drop the support of had_map_for in
octopus, as it has been 2 releases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/messages/MPGStats.h
src/osd/OSD.cc
src/osd/OSD.h
src/test/mon/test_mon_workloadgen.cc