[tracker/forced-mtime-check-per-directory: 3/5] libtracker-miner: clear forced mtime check directories once first crawled
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/forced-mtime-check-per-directory: 3/5] libtracker-miner: clear forced mtime check directories once first crawled
- Date: Thu, 8 Sep 2011 14:59:37 +0000 (UTC)
commit 14611761b4ddb3fe95c0062340fc4ebf1053d178
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Sep 7 10:12:04 2011 +0200
libtracker-miner: clear forced mtime check directories once first crawled
src/libtracker-miner/tracker-miner-fs.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 850eff7..c648923 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1211,6 +1211,14 @@ process_stop (TrackerMinerFS *fs)
fs->priv->total_files_found = 0;
fs->priv->total_files_ignored = 0;
+ /* Once we have done first crawling, we can safely clear forced mtime check
+ * directories */
+ if (fs->priv->forced_mtime_check_directories) {
+ g_list_foreach (fs->priv->forced_mtime_check_directories, (GFunc) g_object_unref, NULL);
+ g_list_free (fs->priv->forced_mtime_check_directories);
+ fs->priv->forced_mtime_check_directories = NULL;
+ }
+
fs->priv->been_crawled = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]