Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix counter initialisation in wkb_reader #781

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Aug 12, 2017

The counter in wkb_reader was always initialized with 0 (result being nullptr after having just been moved to m_result). So expiry from_db() has not been doing anything for a long time now.

As a test, import a single way and then append a change which modifies a node on this way.

@Nakaner Would you mind running this change through your setup? It is more extensive then my tests when it comes to expiry.

Fixes #766.

@lonvia
Copy link
Collaborator Author

lonvia commented Aug 12, 2017

This is a candidate for backporting.

@pnorman pnorman merged commit f1d6652 into osm2pgsql-dev:master Aug 14, 2017
@lonvia lonvia deleted the fix-expire-row-count branch August 25, 2017 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants