[tracker/rss-enclosures] TrackerMinerFS: Do not query parent URN frequently if it doesn't exist.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] TrackerMinerFS: Do not query parent URN frequently if it doesn't exist.
- Date: Mon, 3 May 2010 00:42:08 +0000 (UTC)
commit 586b0feea58e1048fbae2ef8bab81a0e731b8b8b
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 21 14:02:30 2010 +0200
TrackerMinerFS: Do not query parent URN frequently if it doesn't exist.
This is specially visible in the applications miner, since the container
directories aren't actually stored.
src/libtracker-miner/tracker-miner-fs.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index c4d02b5..17e7f18 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1238,10 +1238,9 @@ item_add_or_update (TrackerMinerFS *fs,
g_free (fs->private->current_parent_urn);
- if (item_query_exists (fs, parent, &fs->private->current_parent_urn, NULL))
- fs->private->current_parent = g_object_ref (parent);
- else {
- fs->private->current_parent = NULL;
+ fs->private->current_parent = g_object_ref (parent);
+
+ if (!item_query_exists (fs, parent, &fs->private->current_parent_urn, NULL)) {
fs->private->current_parent_urn = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]