MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / deleteRegion

Function deleteRegion

src/tools/store.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22void removeLocks() { storage::SharedMonitor<storage::SharedRegionRegister>::remove(); }
23
24void deleteRegion(const storage::ProjID proj_id)
25{
26 if (storage::RegionExists(proj_id) && !storage::Remove(proj_id))
27 {
28 util::Log(logWARNING) << "could not delete shared memory region "
29 << static_cast<int>(proj_id);
30 }
31}
32
33void listRegions(bool show_blocks)
34{

Callers 1

springCleanFunction · 0.85

Calls 3

RegionExistsFunction · 0.85
RemoveFunction · 0.85
LogClass · 0.85

Tested by

no test coverage detected