[tracker/merge: 4/5] tracker-miner-fs: Use DELETE instead of DROP GRAPH for volumes



commit 971e954d181a6ff3bd518191b194cb1b199cc291
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jun 9 14:46:20 2010 +0200

    tracker-miner-fs: Use DELETE instead of DROP GRAPH for volumes
    
    Our DROP GRAPH implementation was not meant to be used like that.
    Regular DELETE semantics work fine here.

 src/miners/fs/tracker-miner-files.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 68e0321..a65202d 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -598,7 +598,7 @@ set_up_mount_point (TrackerMinerFiles *miner,
 			                        removable_device_urn, removable_device_urn, uri);
 
 			g_string_append_printf (queries,
-			                        "DROP GRAPH <%s> "
+			                        "DELETE { <%s> a rdfs:Resource }  "
 			                        "INSERT INTO <%s> { "
 			                        "  <%s> a tracker:Volume; "
 			                        "       tracker:mountPoint ?u "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]