Commit 72337af1 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-sparql: Handle correctly backreferences in TrackerResource tree

We do keep a notion of already visited TrackerResources when generating the
output. However that could go wrong if the TrackerResource references itself
or a "parent" TrackerResource.

Add the resources to the done list beforehand, so they are ensured not to be
visited again if such backreferences exist.

Related: tracker-miners#60
parent feff652b
Pipeline #72099 passed with stage
in 2 minutes and 17 seconds