In some cases, this may lead to mon wrongly marking an osd down
because of no pg stats after a specified time period.
Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
return false;
}
- last_osd_report[from] = ceph_clock_now();
-
if (!stats->get_orig_source().is_osd() ||
!mon->osdmon()->osdmap.is_up(from) ||
stats->get_orig_source_inst() != mon->osdmon()->osdmap.get_inst(from)) {
dout(1) << " ignoring stats from non-active osd." << dendl;
return false;
}
+
+ last_osd_report[from] = ceph_clock_now();
if (!pg_stats_have_changed(from, stats)) {
dout(10) << " message contains no new osd|pg stats" << dendl;