diff options
author | Mykola Golub <mgolub@suse.com> | 2018-09-23 19:33:14 +0200 |
---|---|---|
committer | Mykola Golub <mgolub@suse.com> | 2018-11-07 20:25:25 +0100 |
commit | f495b8cce9014d3459f41691ad5eb7ca1fc9d153 (patch) | |
tree | 43f582f345c32cd6e823282eaf6dcd6a810af284 /src/mgr/MgrClient.cc | |
parent | mgr: add OSDPerfMetricReport struct to MMgrReport (diff) | |
download | ceph-f495b8cce9014d3459f41691ad5eb7ca1fc9d153.tar.xz ceph-f495b8cce9014d3459f41691ad5eb7ca1fc9d153.zip |
osd: collect client perf stats when query is enabled
Fixes: https://tracker.ceph.com/issues/36091
Signed-off-by: Mykola Golub <mgolub@suse.com>
Diffstat (limited to 'src/mgr/MgrClient.cc')
-rw-r--r-- | src/mgr/MgrClient.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mgr/MgrClient.cc b/src/mgr/MgrClient.cc index 4bddbe2a19c..db5b586127b 100644 --- a/src/mgr/MgrClient.cc +++ b/src/mgr/MgrClient.cc @@ -351,7 +351,7 @@ void MgrClient::_send_report() &last_config_bl_version); if (get_perf_report_cb) { - //get_perf_report_cb(&report->perf_report) + get_perf_report_cb(&report->osd_perf_metric_reports); } session->con->send_message(report); @@ -389,16 +389,16 @@ bool MgrClient::handle_mgr_configure(MMgrConfigure *m) stats_threshold = m->stats_threshold; } + if (set_perf_queries_cb) { + set_perf_queries_cb(m->osd_perf_metric_queries); + } + bool starting = (stats_period == 0) && (m->stats_period != 0); stats_period = m->stats_period; if (starting) { _send_stats(); } - if (set_perf_queries_cb) { - set_perf_queries_cb(m->osd_perf_metric_queries); - } - m->put(); return true; } |