Commit e5f565fb authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: cater for unbound nfo:belongsToContainer when moving items

Fixes warnings when moving indexing roots around. This query expects this
property to be bound, resulting in no-op if that's not the case (e.g.
indexing roots), later reinsertions of nie:url and other properties with
max cardinality=1 trigger the whole update failure, because those weren't
properly removed.
parent b7aa32c8
......@@ -1925,10 +1925,10 @@ item_move (TrackerMinerFS *fs,
"} WHERE { "
" <%s> nfo:fileName ?f ; "
" nie:url ?u ; "
" nie:isStoredAs ?s ; "
" nfo:belongsToContainer ?b"
" nie:isStoredAs ?s . "
" OPTIONAL { <%s> nfo:belongsToContainer ?b }"
"} ",
source_iri, source_iri);
source_iri, source_iri, source_iri);
display_name = tracker_sparql_escape_string (g_file_info_get_display_name (file_info));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment