Skip to content

Store DataAccess versions in headers instead of properties file - #2436

Merged
easbar merged 7 commits into
masterfrom
dataaccess_versions
Oct 29, 2021
Merged

easbar merged 7 commits into
masterfrom
dataaccess_versions

Conversation

@easbar

@easbar easbar commented Oct 18, 2021

Copy link
Copy Markdown
Member

I think keeping the version close to the data makes sense. This way the number of DataAccess files is independent from the global properties file.

Comment on lines -281 to +279
dataAccess.setHeader(0, MAGIC_INT);
dataAccess.setHeader(0, Constants.VERSION_LOCATION_IDX);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already stored a kind of version for location index, now we just do this for all our DataAccess

@karussell

Copy link
Copy Markdown
Member

👍

@easbar
easbar merged commit ada840b into master Oct 29, 2021
@easbar
easbar deleted the dataaccess_versions branch October 29, 2021 16:13
@easbar easbar added this to the 5.0 milestone Dec 10, 2021
aoles added a commit to GIScience/graphhopper that referenced this pull request Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants