[tracker] tracker-miner-fs: Fix SPARQL for files without extracted metadata
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: Fix SPARQL for files without extracted metadata
- Date: Tue, 17 Nov 2009 12:56:29 +0000 (UTC)
commit dc75050a2b44cf840bb620628b2917fbc9c6dca9
Author: Jürg Billeter <j bitron ch>
Date: Tue Nov 17 13:53:42 2009 +0100
tracker-miner-fs: Fix SPARQL for files without extracted metadata
A call to tracker_sparql_builder_insert_close was missing for files
where the extractor does not return any metadata leading to invalid
SPARQL being sent to tracker-store.
src/tracker-miner-fs/tracker-miner-files.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-miner-fs/tracker-miner-files.c b/src/tracker-miner-fs/tracker-miner-files.c
index 8219408..415b97a 100644
--- a/src/tracker-miner-fs/tracker-miner-files.c
+++ b/src/tracker-miner-fs/tracker-miner-files.c
@@ -1217,7 +1217,6 @@ extractor_get_embedded_metadata_cb (DBusGProxy *proxy,
}
if (sparql) {
- tracker_sparql_builder_insert_close (data->sparql);
tracker_sparql_builder_append (data->sparql, sparql);
g_free (sparql);
}
@@ -1332,6 +1331,8 @@ process_file_cb (GObject *object,
miner_files_add_to_datasource (data->miner, file, sparql);
+ tracker_sparql_builder_insert_close (sparql);
+
/* Send file/mime data to thumbnailer (which adds it to the
* queue if the thumbnailer handles those mime types).
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]