Skip to content
Permalink
Browse files
apidb: Fix one-off error in current way/relation loading
The previous patch had a minor bug where the minimum way and relation
ids being loaded into the current tables were one-off and therefore
missing the first id to be loaded.
  • Loading branch information
brettch committed Sep 23, 2014
1 parent 1b49b7e commit 53880f0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1160,7 +1160,7 @@ public void process(WayContainer wayContainer) {
maxWayId = wayId + 1;
}
if (wayId < minWayId) {
minWayId = wayId + 1;
minWayId = wayId;
}
wayBuffer.add(way);

@@ -1215,7 +1215,7 @@ public void process(RelationContainer relationContainer) {
maxRelationId = relationId + 1;
}
if (relationId < minRelationId) {
minRelationId = relationId + 1;
minRelationId = relationId;
}
relationBuffer.add(relation);

0 comments on commit 53880f0

Please sign in to comment.