[tracker/no-mtime-checks-on-start] libtracker-miner: 'been_crawled' is the one notifying that first crawl was done
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/no-mtime-checks-on-start] libtracker-miner: 'been_crawled' is the one notifying that first crawl was done
- Date: Thu, 3 Feb 2011 12:01:47 +0000 (UTC)
commit fee725962de3fb1ba5fbf12083b2d104a645a835
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Feb 3 12:14:06 2011 +0100
libtracker-miner: 'been_crawled' is the one notifying that first crawl was done
src/libtracker-miner/tracker-miner-fs.c | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 8c2cccb..def598d 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -207,13 +207,17 @@ struct _TrackerMinerFSPrivate {
GHashTable *check_removed;
/* Status */
- guint been_started : 1;
- guint been_crawled : 1;
- guint shown_totals : 1;
- guint is_paused : 1;
- guint is_crawling : 1;
- guint mtime_checking : 1;
- guint initial_crawling : 1;
+ guint been_started : 1; /* TRUE if miner has been started */
+ guint been_crawled : 1; /* TRUE if initial crawling has been
+ * done */
+ guint shown_totals : 1; /* TRUE if totals have been shown */
+ guint is_paused : 1; /* TRUE if miner is paused */
+ guint is_crawling : 1; /* TRUE if currently is crawling
+ * (initial or non-initial) */
+ guint mtime_checking : 1; /* TRUE if mtime checks should be done
+ * during initial crawling. */
+ guint initial_crawling : 1; /* TRUE if initial crawling should be
+ * done */
/* Statistics */
guint total_directories_found;
@@ -3552,7 +3556,7 @@ crawler_check_directory_contents_cb (TrackerCrawler *crawler,
if (add_monitor) {
/* Set quark so that before trying to add the item we first
* check for its existence. */
- if (!fs->private->is_crawling || fs->private->mtime_checking) {
+ if (!fs->private->been_crawled || fs->private->mtime_checking) {
g_object_set_qdata (G_OBJECT (parent),
fs->private->quark_check_existence,
GINT_TO_POINTER (TRUE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]