summaryrefslogtreecommitdiffstats
path: root/src/mgr/MgrClient.cc
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2018-10-02 21:01:12 +0200
committerGitHub <noreply@github.com>2018-10-02 21:01:12 +0200
commitb8302578d918e6701c6c58576d5fd891ac4de3a8 (patch)
treed699446cbadc346b46bef2064a4d475d00cdda75 /src/mgr/MgrClient.cc
parentMerge pull request #24349 from ricardoasmarques/wip-ex-message-py3 (diff)
parentmgr: add optional OSD perf queries to MMgrConfigure message (diff)
downloadceph-b8302578d918e6701c6c58576d5fd891ac4de3a8.tar.xz
ceph-b8302578d918e6701c6c58576d5fd891ac4de3a8.zip
Merge pull request #24180 from colletj/wip-35914-mmgrconfigure-osd-query
mgr: update MMgrConfigure message to include optional OSD perf queries Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/mgr/MgrClient.cc')
-rw-r--r--src/mgr/MgrClient.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mgr/MgrClient.cc b/src/mgr/MgrClient.cc
index 0d6acf76bf0..c436bb9fee1 100644
--- a/src/mgr/MgrClient.cc
+++ b/src/mgr/MgrClient.cc
@@ -350,6 +350,10 @@ void MgrClient::_send_report()
cct->_conf.get_config_bl(last_config_bl_version, &report->config_bl,
&last_config_bl_version);
+ if (get_perf_report_cb) {
+ //get_perf_report_cb(&report->perf_report)
+ }
+
session->con->send_message(report);
}
@@ -391,6 +395,10 @@ bool MgrClient::handle_mgr_configure(MMgrConfigure *m)
_send_stats();
}
+ if (set_perf_queries_cb) {
+ set_perf_queries_cb(m->osd_perf_metric_queries);
+ }
+
m->put();
return true;
}