-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable conditional restriction handling by default in configs #4622
Conversation
This needs a rebase after we merge #4623 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't conditionally write the .restrictions
file even if its empty because that will break the using code in osrm-contract/customize
.
storage::io::FileWriter writer(conditional_penalties_filename, | ||
storage::io::FileWriter::GenerateFingerprint); | ||
extractor::serialization::write(writer, indexed_conditionals); | ||
if (!indexed_conditionals.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why we write out en empty file here is that otherwise the loading code will fail: https://travis-ci.org/Project-OSRM/osrm-backend/jobs/289928057#L2508
The .restrictions
file can be empty but is not optional.
include/updater/updater_config.hpp
Outdated
".osrm.geometry", | ||
".osrm.fileIndex", | ||
".osrm.properties"}, | ||
{".osrm.restrictions"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.restrictions
is actually not optional, but can be empty.
From reading the ticket / conversation here it looks like this is a bug fix which should go into master and a release asap? What needs to be done here? |
5dfb1cb
to
a5597c6
Compare
… parsing by default
a5597c6
to
78fb519
Compare
Issue
Closes #4620
Tasklist