[tracker/duplicates-after-interrupts] libtracker-miner: Improving logs
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/duplicates-after-interrupts] libtracker-miner: Improving logs
- Date: Tue, 13 Jul 2010 15:08:12 +0000 (UTC)
commit 18feae74da0129e361e3c239aaff8ec0908702f5
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Jul 13 17:08:00 2010 +0200
libtracker-miner: Improving logs
src/libtracker-miner/tracker-miner-fs.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index fddb6a5..bc0fa43 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1430,15 +1430,17 @@ item_add_or_update_cb (TrackerMinerFS *fs,
} else {
gchar *full_sparql;
- g_debug ("Adding item '%s'", uri);
-
if (data->urn) {
+ g_debug ("Updating item '%s' with urn '%s'", uri, data->urn);
+
/* update, delete all statements inserted by miner
except for rdf:type statements as they could cause implicit deletion of user data */
full_sparql = g_strdup_printf ("DELETE { <%s> ?p ?o } WHERE { GRAPH <%s> { <%s> ?p ?o FILTER (?p != rdf:type) } } %s",
data->urn, TRACKER_MINER_FS_GRAPH_URN,
data->urn, tracker_sparql_builder_get_result (data->builder));
} else {
+ g_debug ("Creating new item '%s'", uri);
+
/* new file */
full_sparql = g_strdup (tracker_sparql_builder_get_result (data->builder));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]