Add 1ms delay as a workaround for "faster" requests than facade update
in osrm-routed
This commit is contained in:
committed by
Patrick Niklaus
parent
fce8d72895
commit
710ba20acc
@@ -65,10 +65,10 @@ class DataWatchdog
|
||||
{
|
||||
if (timestamp != current->timestamp)
|
||||
{
|
||||
util::Log() << "updating facade to region " << storage::regionToString(current->region)
|
||||
<< " with timestamp " << current->timestamp;
|
||||
facade = std::make_shared<datafacade::SharedMemoryDataFacade>(current->region);
|
||||
timestamp = current->timestamp;
|
||||
util::Log() << "updated facade to region " << storage::regionToString(current->region)
|
||||
<< " with timestamp " << current->timestamp;
|
||||
}
|
||||
|
||||
barrier.region_condition.wait(current_region_lock);
|
||||
|
||||
Reference in New Issue
Block a user