Skip to content

Commit 50f5a75

Browse files
committed
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.
1 parent 4ac827a commit 50f5a75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- FIXED: Upgrade to @mapbox/node-pre-gyp fix various bugs with Node 12/14 [#5991](https://github.com/Project-OSRM/osrm-backend/pull/5991)
55
- FIXED: `valid` type in documentation examples [#5990](https://github.com/Project-OSRM/osrm-backend/issues/5990)
66
- FIXED: Remove redundant loading of .osrm.cell_metrics [#6019](https://github.com/Project-OSRM/osrm-backend/issues/6019)
7+
- CHANGED: Increase PackedOSMIDs size to 34 bits. This breaks the **data format** [#6020](https://github.com/Project-OSRM/osrm-backend/issues/6020)
78
- Profile:
89
- FIXED: Add kerb barrier exception to default car profile. [#5999](https://github.com/Project-OSRM/osrm-backend/pull/5999)
910

include/extractor/packed_osm_ids.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace extractor
1111
namespace detail
1212
{
1313
template <storage::Ownership Ownership>
14-
using PackedOSMIDs = util::detail::PackedVector<OSMNodeID, 33, Ownership>;
14+
using PackedOSMIDs = util::detail::PackedVector<OSMNodeID, 34, Ownership>;
1515
}
1616

1717
using PackedOSMIDsView = detail::PackedOSMIDs<storage::Ownership::View>;

0 commit comments

Comments
 (0)