[tracker] TrackerMinerFS: always set current_parent in ensure_mtime_cache()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: always set current_parent in ensure_mtime_cache()
- Date: Thu, 22 Apr 2010 15:15:41 +0000 (UTC)
commit 5dfd96af5cb7ca05a83e3a8055872275ac05a658
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]