diff options
author | Sage Weil <sage@redhat.com> | 2017-06-26 19:22:17 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2017-07-09 04:30:28 +0200 |
commit | 97cfc3cb694eb2723cae22d71057323773746cee (patch) | |
tree | 6a49a0e5e71eb3e38a1512e63681dfd9c3f7be99 /src/mgr/ClusterState.cc | |
parent | mon: include services in 'ceph -s' (diff) | |
download | ceph-97cfc3cb694eb2723cae22d71057323773746cee.tar.xz ceph-97cfc3cb694eb2723cae22d71057323773746cee.zip |
mgr: allow/track service registrations
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/mgr/ClusterState.cc')
-rw-r--r-- | src/mgr/ClusterState.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mgr/ClusterState.cc b/src/mgr/ClusterState.cc index 44ba19d0b74..6dee866c7d8 100644 --- a/src/mgr/ClusterState.cc +++ b/src/mgr/ClusterState.cc @@ -53,6 +53,12 @@ void ClusterState::set_mgr_map(MgrMap const &new_mgrmap) mgr_map = new_mgrmap; } +void ClusterState::set_service_map(ServiceMap const &new_service_map) +{ + Mutex::Locker l(lock); + servicemap = new_service_map; +} + void ClusterState::load_digest(MMgrDigest *m) { health_json = std::move(m->health_json); |