File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,12 @@ template <typename Data> struct SharedMonitor
117117#endif
118118
119119 static void remove () { bi::shared_memory_object::remove (Data::name); }
120- static bool exists () {
120+ static bool exists ()
121+ {
121122 try
122123 {
123- bi::shared_memory_object shmem_open = bi::shared_memory_object (bi::open_only, Data::name, bi::read_only);
124+ bi::shared_memory_object shmem_open =
125+ bi::shared_memory_object (bi::open_only, Data::name, bi::read_only);
124126 }
125127 catch (const bi::interprocess_exception &exception)
126128 {
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ void deleteRegion(const storage::SharedRegionRegister::ShmKey key)
2727
2828void listRegions ()
2929{
30+ osrm::util::Log () << " name\t shm key\t timestamp\t size" ;
3031 if (!storage::SharedMonitor<storage::SharedRegionRegister>::exists ())
3132 {
32- osrm::util::Log () << " No shared memory regions found. Try running osrm-datastore" ;
3333 return ;
3434 }
3535 storage::SharedMonitor<storage::SharedRegionRegister> monitor;
You can’t perform that action at this time.
0 commit comments