Skip to content

Commit

Permalink
Relations: fix effectiveShards > 1 check
Browse files Browse the repository at this point in the history
Oops, bug that very moderately affected performance in the non
`--shard-stores` case
  • Loading branch information
cldellow committed Dec 19, 2023
1 parent f499e34 commit bbf0957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read_pbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ bool PbfReader::ReadRelations(
if (role==innerKey || role==outerKey) isInnerOuter=true;
WayID wayId = static_cast<WayID>(lastID);

if (firstWay && effectiveShards > 0 && !osmStore.ways.contains(shard, wayId)) {
if (firstWay && effectiveShards > 1 && !osmStore.ways.contains(shard, wayId)) {
skipToNext = true;
break;
}
Expand Down

0 comments on commit bbf0957

Please sign in to comment.