MCPcopy Create free account
hub / github.com/ceph/ceph / unregister_client

Method unregister_client

src/mgr/PyModuleRegistry.h:220–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 clients.emplace(n, std::move(addrs));
219 }
220 void unregister_client(std::string_view name, const entity_addrvec_t& addrs)
221 {
222 std::lock_guard l(lock);
223 auto itp = clients.equal_range(std::string(name));
224 for (auto it = itp.first; it != itp.second; ++it) {
225 if (it->second == addrs) {
226 clients.erase(it);
227 return;
228 }
229 }
230 }
231
232 auto get_clients() const
233 {

Callers

nothing calls this directly

Calls 2

equal_rangeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected