[tracker] libtracker-miner: Empty query_files cache when crawling the next folder
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Empty query_files cache when crawling the next folder
- Date: Thu, 5 May 2016 11:46:03 +0000 (UTC)
commit 612383bf373ceb8f015664f2cf07681487ab8789
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 3 00:14:38 2016 +0200
libtracker-miner: Empty query_files cache when crawling the next folder
If, for the usual reasons, a directory is ignored after crawling, we
must remove files accumulated till that point. Those are pointless when
processing the next folder.
src/libtracker-miner/tracker-file-notifier.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index dc13f85..e9f2ef9 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -1029,6 +1029,7 @@ crawler_finished_cb (TrackerCrawler *crawler,
priv->current_index_root->query_files->len, max_depth);
g_ptr_array_set_size (priv->current_index_root->query_files, 0);
} else {
+ g_ptr_array_set_size (priv->current_index_root->query_files, 0);
file_notifier_traverse_tree (notifier, max_depth);
finish_current_directory (notifier, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]