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

Method get_osdmap

src/mgr/ActivePyModules.cc:1382–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380}
1381
1382PyObject *ActivePyModules::get_osdmap()
1383{
1384 auto newmap = without_gil([&] {
1385 OSDMap *newmap = new OSDMap;
1386 cluster_state.with_osdmap([&](const OSDMap& o) {
1387 newmap->deepish_copy_from(o);
1388 });
1389 return newmap;
1390 });
1391 return construct_with_capsule("mgr_module", "OSDMap", (void*)newmap);
1392}
1393
1394PyObject *ActivePyModules::get_foreign_config(
1395 const std::string& who,

Callers 1

ceph_get_osdmapFunction · 0.45

Calls 4

without_gilFunction · 0.85
construct_with_capsuleFunction · 0.85
deepish_copy_fromMethod · 0.80
with_osdmapMethod · 0.45

Tested by

no test coverage detected