Skip to content

Tags: zerebubuth/planet-dump-ng

Tags

v1.2.8

Toggle v1.2.8's commit message
Update version and fix URLs in configure.ac

v1.2.7

Toggle v1.2.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #31 from tomhughes/pthread

Link with libpthread

v1.2.6

Toggle v1.2.6's commit message
Try to avoid pblock overflow by tracking estimated size

Planet dump would fail intermittently complaining of block overflow (#25). The root cause of this was failing to encode [relation 6677259](https://www.openstreetmap.org/relation/6677259) in the history PBF.

PBF files are sequences of individual blocks and every block must be smaller than 16MiB. To try and satisfy this, the PBF encoder checks the size of the encoded pblock on a regular basis, every `N` elements. The assumption is that the average size of the element multiplied by `N` would be smaller than 16MiB. Unfortunately with relation 6677259 that wasn't the case, as versions in its history have more than 25,000 members and were taking up about 100kiB each (so only 164 versions are needed to overflow, relation 6677259 has 440-ish).

This change implements an _approximate_ size counter for relations, which should help to make sure that the pgroup is flushed when it gets too large, even if it hasn't reached `N` elements yet. This hasn't seemed necessary yet for ways (they are limited to a fixed number of nodes each) or nodes, but extending to handle those - if necessary - should be straightforward.

v1.2.5

Toggle v1.2.5's commit message
Recheck relation size limit more often and with a smaller margin.

This rechecks the relation block size every 200 elements instead of every 500, so should be more likely to catch overruns. It also only permits a 12.5% overrun of the "ideal" block length before flushing, which should limit the scope for reaching the error condition (100% overrun).

v1.2.4

Toggle v1.2.4's commit message
Bump version to v1.2.4 for boost and protobuf library update fixes.

v1.2.3

Toggle v1.2.3's commit message
Bump version to v1.2.3 for fix to pg_restore command line.

v1.2.2

Toggle v1.2.2's commit message
Bump version for mistake fix (loop swapping).

v1.2.1

Toggle v1.2.1's commit message
Bump version to v1.2.1 for better handling of exceptions in writer_th…

…read.

v1.2.0

Toggle v1.2.0's commit message
Bump version for release.

v1.1.8

Toggle v1.1.8's commit message
Bump version to 1.1.8.