[tracker/miner-fs-queries-performance] TrackerMinerFS: always set current_parent in ensure_mtime_cache()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-queries-performance] TrackerMinerFS: always set current_parent in ensure_mtime_cache()
- Date: Thu, 22 Apr 2010 13:32:48 +0000 (UTC)
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]