From 2a0d6f5242d17bf7d3b2d52330b568b5f0573922 Mon Sep 17 00:00:00 2001 From: Michael Bell Date: Sat, 24 Apr 2021 16:01:21 +0100 Subject: [PATCH] Increase PackedOSMIDs size to 34 bits OSM node 2^33 was created in early April 2021. This and all subsequently created IDs will be overflowing OSRM node storage which only support 33 bit IDs. Bump the number of bits to 34 to double node ID capacity. This is a breaking change to the data format as it alters the layout of .osrm.nbg_nodes. --- CHANGELOG.md | 1 + include/extractor/packed_osm_ids.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f9007696a3..b212d9b979f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - 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: `valid` type in documentation examples [#5990](https://github.com/Project-OSRM/osrm-backend/issues/5990) + - CHANGED: Increase PackedOSMIDs size to 34 bits. This breaks the **data format** [#6020](https://github.com/Project-OSRM/osrm-backend/issues/6020) - Profile: - FIXED: Add kerb barrier exception to default car profile. [#5999](https://github.com/Project-OSRM/osrm-backend/pull/5999) diff --git a/include/extractor/packed_osm_ids.hpp b/include/extractor/packed_osm_ids.hpp index 3a1b5055739..e920260b7eb 100644 --- a/include/extractor/packed_osm_ids.hpp +++ b/include/extractor/packed_osm_ids.hpp @@ -11,7 +11,7 @@ namespace extractor namespace detail { template -using PackedOSMIDs = util::detail::PackedVector; +using PackedOSMIDs = util::detail::PackedVector; } using PackedOSMIDsView = detail::PackedOSMIDs;