New update on conflict logic#6825
Conversation
|
Sorry @westnordost for not checking earlier, but no time. Anyway, I think this should work. One thing I'm not sure about: when downloading, nodes are persisted first, then ways. The |
|
Yes, I believe it could trigger that. (But a crash caused by this would fix itself latest after one day, i.e. the next time the cleaner runs.) But ofc, it was like this before, too. |
In my understanding, before this PR nodes that are part of a way would not be deleted until the next run of the cleaner. |
Ensure that all updated ways in MapDataUpdates are always complete (fixes #6779 and #6419)
This is a different solution for #5073 which also solves the aforementioned issues. So, reverted that, which makes it possible to create also an easy fix for #6771.
TODO:
Test:
Test: Crash in MapDataWithEditsSource when a way in a bbox update has missing nodes #6779 (comment)
at least another pair of eyes for review
maybe also a unit test