Remove redundant loading of .osrm.cell_metrics
When using process memory, MLD cell metrics are loaded twice from .osrm.cell_metrics - once when loading static data, and again when loading updatable data. The former appears to be the mistake, as .osrm.cell_metrics is only listed in `GetUpdatableFiles`.
This commit is contained in:
parent
def699dafd
commit
4ac827a849
@ -3,6 +3,7 @@
|
|||||||
- Misc:
|
- Misc:
|
||||||
- FIXED: Upgrade to @mapbox/node-pre-gyp fix various bugs with Node 12/14 [#5991](https://github.com/Project-OSRM/osrm-backend/pull/5991)
|
- FIXED: Upgrade to @mapbox/node-pre-gyp fix various bugs with Node 12/14 [#5991](https://github.com/Project-OSRM/osrm-backend/pull/5991)
|
||||||
- FIXED: `valid` type in documentation examples [#5990](https://github.com/Project-OSRM/osrm-backend/issues/5990)
|
- FIXED: `valid` type in documentation examples [#5990](https://github.com/Project-OSRM/osrm-backend/issues/5990)
|
||||||
|
- FIXED: Remove redundant loading of .osrm.cell_metrics [#6019](https://github.com/Project-OSRM/osrm-backend/issues/6019)
|
||||||
- Profile:
|
- Profile:
|
||||||
- FIXED: Add kerb barrier exception to default car profile. [#5999](https://github.com/Project-OSRM/osrm-backend/pull/5999)
|
- FIXED: Add kerb barrier exception to default car profile. [#5999](https://github.com/Project-OSRM/osrm-backend/pull/5999)
|
||||||
|
|
||||||
|
@ -489,15 +489,6 @@ void Storage::PopulateStaticData(const SharedDataIndex &index)
|
|||||||
partitioner::files::readCells(config.GetPath(".osrm.cells"), storage);
|
partitioner::files::readCells(config.GetPath(".osrm.cells"), storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boost::filesystem::exists(config.GetPath(".osrm.cell_metrics")))
|
|
||||||
{
|
|
||||||
auto exclude_metrics = make_cell_metric_view(index, "/mld/metrics/" + metric_name);
|
|
||||||
std::unordered_map<std::string, std::vector<customizer::CellMetricView>> metrics = {
|
|
||||||
{metric_name, std::move(exclude_metrics)},
|
|
||||||
};
|
|
||||||
customizer::files::readCellMetrics(config.GetPath(".osrm.cell_metrics"), metrics);
|
|
||||||
}
|
|
||||||
|
|
||||||
// load maneuver overrides
|
// load maneuver overrides
|
||||||
{
|
{
|
||||||
auto views = make_maneuver_overrides_views(index, "/common/maneuver_overrides");
|
auto views = make_maneuver_overrides_views(index, "/common/maneuver_overrides");
|
||||||
|
Loading…
Reference in New Issue
Block a user