[tracker/miner-fs-refactor-multi-insert] libtracker-miner: Don't process directories until crawling finished



commit edfea67035396ea014b9d4a0a4c575a9e39ee911
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Oct 21 14:48:18 2010 +0200

    libtracker-miner: Don't process directories until crawling finished

 src/libtracker-miner/tracker-miner-fs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index da42f92..1554533 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3220,12 +3220,12 @@ crawler_check_directory_contents_cb (TrackerCrawler *crawler,
 	 */
 	if (add_monitor) {
 		if (!item_query_exists (fs, parent, NULL, NULL)) {
-			/* Before adding the monitor, start notifying the store
-			 * about the new directory, so that if any file event comes
-			 * afterwards, the directory is already in store. */
+			/* Before adding the monitor, push the found directory to the
+			 * items_created queue. This will force that if any event comes
+			 * on files inside the directory, they will be postponed until
+			 * this directory has been processed in the store. */
 			g_queue_push_tail (fs->private->items_created,
 			                   g_object_ref (parent));
-			item_queue_handlers_set_up (fs);
 		}
 
 		/* As we already added here, specify that it shouldn't be added



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]