]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: update osd_stat_updated field if we force to report to monitor
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 30 Mar 2016 04:17:15 +0000 (12:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 30 Mar 2016 08:39:46 +0000 (16:39 +0800)
commit9cf53022c307c67e5926f9d58ba7be1758bb0a2d
treed23d6a874a9273c47df5ce0c138c8670a8c8bdac
parent5b49e9fb41615288290470588f82d6c77c7ee43d
osd: update osd_stat_updated field if we force to report to monitor

On tick_without_osd_lock() waking up, we will force an immediate
report to monitor if a long enough period has elapsed since our
last report was sent.

However, the send_pg_stats() procedure is a noop unless either
osd_stat_updated field is set or pg_stat_queue is empty.
Since the latter condition is non-deterministic, we shall
manually set osd_stat_updated here to kick a pg relevant report
off.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc