| 33 | |
| 34 | public: |
| 35 | SubsystemMap() { |
| 36 | constexpr auto s = ceph_subsys_get_as_array(); |
| 37 | m_subsys.reserve(s.size()); |
| 38 | |
| 39 | std::size_t i = 0; |
| 40 | for (const ceph_subsys_item_t& item : s) { |
| 41 | m_subsys.emplace_back(item); |
| 42 | m_gather_levels[i++] = std::max(item.log_level, item.gather_level); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | constexpr static std::size_t get_num() { |
| 47 | return ceph_subsys_get_num(); |
nothing calls this directly
no test coverage detected