[tracker] libtracker-miner: if miner still crawling, don't consider it as cleanly shutdown
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: if miner still crawling, don't consider it as cleanly shutdown
- Date: Tue, 13 Sep 2011 15:51:40 +0000 (UTC)
commit 1c512c4002d9772d5fe839c39a2e80c567c895d6
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Sep 13 17:45:29 2011 +0200
libtracker-miner: if miner still crawling, don't consider it as cleanly shutdown
Fixes NB#277052.
src/libtracker-miner/tracker-miner-fs.c | 3 ++-
src/miners/fs/tracker-main.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index c648923..0d7b1ae 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -5466,7 +5466,8 @@ tracker_miner_fs_has_items_to_process (TrackerMinerFS *fs)
{
g_return_val_if_fail (TRACKER_IS_MINER_FS (fs), FALSE);
- if (!tracker_priority_queue_is_empty (fs->priv->crawled_directories) ||
+ if (fs->priv->is_crawling ||
+ !tracker_priority_queue_is_empty (fs->priv->crawled_directories) ||
!tracker_priority_queue_is_empty (fs->priv->items_deleted) ||
!tracker_priority_queue_is_empty (fs->priv->items_created) ||
!tracker_priority_queue_is_empty (fs->priv->items_updated) ||
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 00b0626..251bf8a 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -633,7 +633,7 @@ miner_needs_check (TrackerMiner *miner,
{
/* Reasons to not mark ourselves as cleanly shutdown include:
*
- * 1. Still have files to process in our queues.
+ * 1. Still crawling or with files to process in our queues.
* 2. We crash (out of our control usually anyway).
* 3. At least one of the miners is PAUSED, we have
* to exclude the situations where the miner is
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]