* set the osd_stat in pg_stat message sent to mgr, otherwise the seq id
in the message would be always 0.
* return the seq id composed of up_epoch and osd_stat_seq when serving
"flush_pg_stats" tell command.
Signed-off-by: Kefu Chai <kchai@redhat.com>
// todo: m-to-n: collect stats using map-reduce
// MPGStats::had_map_for is not used since PGMonitor was removed
auto m = make_message<MPGStats>(monc->get_fsid(), osdmap->get_epoch());
-
+ m->osd_stat = osd_stat;
for (auto [pgid, pg] : pg_map.get_pgs()) {
if (pg->is_primary()) {
auto stats = pg->get_stats();
{
// mgr client sends the report message in background
mgrc->report();
- return osd_stat_seq;
+ return osd_stat.seq;
}
OSD::cached_map_t OSD::get_map() const