[tracker/no-mtime-checks-on-start] FIXUP been_crawled logic
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/no-mtime-checks-on-start] FIXUP been_crawled logic
- Date: Thu, 3 Feb 2011 12:09:23 +0000 (UTC)
commit 5a22fcf08e954f5c8487297cfca07d0f8def738e
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Feb 3 13:08:57 2011 +0100
FIXUP been_crawled logic
src/libtracker-miner/tracker-miner-fs.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index def598d..df1f457 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3554,9 +3554,13 @@ crawler_check_directory_contents_cb (TrackerCrawler *crawler,
* the finished sig?
*/
if (add_monitor) {
- /* Set quark so that before trying to add the item we first
- * check for its existence. */
- if (!fs->private->been_crawled || fs->private->mtime_checking) {
+ /* Only if:
+ * -First crawl has already been done OR
+ * -mtime_checking is TRUE.
+ */
+ if (fs->private->been_crawled || fs->private->mtime_checking) {
+ /* Set quark so that before trying to add the item we first
+ * check for its existence. */
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]