So we don't potentially make an incorrect judgement in the tick_without_osd_lock()
procedure if OSD's first pg_stats message was sent, which as a result shall cause
an unnecessary hunting of new monitor.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
pg->pg_stats_publish_lock.Unlock();
}
- if (!outstanding_pg_stats.empty()) {
+ if (last_pg_stats_ack == utime_t() || !outstanding_pg_stats.empty()) {
last_pg_stats_ack = ceph_clock_now(cct);
}
outstanding_pg_stats.insert(tid);