tracker r2828 - in trunk: . src/trackerd



Author: carlosg
Date: Fri Jan 23 13:43:34 2009
New Revision: 2828
URL: http://svn.gnome.org/viewvc/tracker?rev=2828&view=rev

Log:
2009-01-23  Carlos Garnacho  <carlos imendio com>

        * src/trackerd/tracker-processor.c (item_queue_handlers_cb): Only set
        state to "indexing" if there are actually items to be sent to the
        indexer, This fixes spurious "indexing" state when indexing new
        elements, etc... Fixes NB #98516.

Modified:
   trunk/ChangeLog
   trunk/src/trackerd/tracker-processor.c

Modified: trunk/src/trackerd/tracker-processor.c
==============================================================================
--- trunk/src/trackerd/tracker-processor.c	(original)
+++ trunk/src/trackerd/tracker-processor.c	Fri Jan 23 13:43:34 2009
@@ -606,9 +606,6 @@
 		return TRUE;
 	}
 
-	/* Now we try to send items to the indexer */
-	tracker_status_set_and_signal (TRACKER_STATUS_INDEXING);
-
 	/* This is here so we don't try to send something if we are
 	 * still waiting for a response from the last send.
 	 */
@@ -649,6 +646,9 @@
 					  &module_name);
 
 	if (queue) {
+		/* Now we try to send items to the indexer */
+		tracker_status_set_and_signal (TRACKER_STATUS_INDEXING);
+
 		files = tracker_dbus_queue_gfile_to_strv (queue, ITEMS_QUEUE_PROCESS_MAX);
 
 		g_message ("Queue for module:'%s' created items processed, sending first %d to the indexer",
@@ -674,6 +674,9 @@
 					  &module_name);
 
 	if (queue) {
+		/* Now we try to send items to the indexer */
+		tracker_status_set_and_signal (TRACKER_STATUS_INDEXING);
+
 		files = tracker_dbus_queue_gfile_to_strv (queue, ITEMS_QUEUE_PROCESS_MAX);
 
 		g_message ("Queue for module:'%s' updated items processed, sending first %d to the indexer",
@@ -702,6 +705,9 @@
 		const gchar *source;
 		const gchar *target;
 
+		/* Now we try to send items to the indexer */
+		tracker_status_set_and_signal (TRACKER_STATUS_INDEXING);
+
 		files = tracker_dbus_queue_gfile_to_strv (queue, 2);
 
 		if (files) {



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