[tracker/miner-fs-queries-performance] TrackerMinerFS: always set current_parent in ensure_mtime_cache()



commit e2495e8249ed06b4a1f0a8df113f22ddd42e16cc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 22 15:31:38 2010 +0200

    TrackerMinerFS: always set current_parent in ensure_mtime_cache()

 src/libtracker-miner/tracker-miner-fs.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a86a552..9e24129 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2169,12 +2169,13 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 			/* Cache is still valid */
 			g_object_unref (parent);
 			return;
-		} else {
-			g_object_unref (fs->private->current_parent);
-			fs->private->current_parent = parent;
 		}
+
+		g_object_unref (fs->private->current_parent);
 	}
 
+	fs->private->current_parent = parent;
+
 	g_hash_table_remove_all (fs->private->mtime_cache);
 
 	uri = g_file_get_uri (parent);



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