Add nodejs test for dataset name
This commit is contained in:
committed by
Patrick Niklaus
parent
2c80f76004
commit
0e8b8b4901
@@ -47,7 +47,7 @@ class DataWatchdogImpl<AlgorithmT, datafacade::ContiguousInternalMemoryDataFacad
|
||||
if (region_id == storage::SharedRegionRegister::INVALID_REGION_ID)
|
||||
{
|
||||
throw util::exception(
|
||||
"Could not find shared memory region. Did you run osrm-datastore?");
|
||||
"Could not find shared memory region for \"" + dataset_name +"/data\". Did you run osrm-datastore?");
|
||||
}
|
||||
shared_region = &shared_register.GetRegion(region_id);
|
||||
region = *shared_region;
|
||||
@@ -94,7 +94,7 @@ class DataWatchdogImpl<AlgorithmT, datafacade::ContiguousInternalMemoryDataFacad
|
||||
facade_factory =
|
||||
DataFacadeFactory<datafacade::ContiguousInternalMemoryDataFacade, AlgorithmT>(
|
||||
std::make_shared<datafacade::SharedMemoryAllocator>(region.shm_key));
|
||||
util::Log() << "updated facade to region " << region.shm_key << " with timestamp "
|
||||
util::Log() << "updated facade to region " << (int) region.shm_key << " with timestamp "
|
||||
<< region.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ template <typename Algorithm> class Engine final : public EngineInterface
|
||||
{
|
||||
if (config.use_shared_memory)
|
||||
{
|
||||
util::Log(logDEBUG) << "Using shared memory with algorithm "
|
||||
util::Log(logDEBUG) << "Using shared memory with name \"" << config.dataset_name << "\" with algorithm "
|
||||
<< routing_algorithms::name<Algorithm>();
|
||||
facade_provider = std::make_unique<WatchingProvider<Algorithm>>(config.dataset_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user