digidem / osm-p2p-db

Peer-to-peer database for OpenStreetMap data
BSD 2-Clause "Simplified" License
235 stars 25 forks source link

Bugfix: delete all parents' refs before adding new refs. #39

Closed hackergrrl closed 7 years ago

hackergrrl commented 7 years ago

This addresses the case where a way or relation references e.g. W1 = [A, B, C] and is then modified just reference W2 = [A, C]. In this case, the backwards reference from B to W1 would be retained. This fix ensures that all of old parents linked to from a new OSM document are purged.

N.B.: depends on hyperlog-join@2.0.0 being published. See https://github.com/substack/hyperlog-join/pull/1

hackergrrl commented 7 years ago

Revisions applied.