tracker r1914 - in branches/indexer-split: . src/trackerd
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1914 - in branches/indexer-split: . src/trackerd
- Date: Wed, 23 Jul 2008 12:03:10 +0000 (UTC)
Author: mr
Date: Wed Jul 23 12:03:09 2008
New Revision: 1914
URL: http://svn.gnome.org/viewvc/tracker?rev=1914&view=rev
Log:
* src/trackerd/tracker-main.c: (main), (tracker_shutdown): Make
sure we signal when we shutdown and also if we are started in
readonly mode make sure we set our status to IDLE.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-main.c
Modified: branches/indexer-split/src/trackerd/tracker-main.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-main.c (original)
+++ branches/indexer-split/src/trackerd/tracker-main.c Wed Jul 23 12:03:09 2008
@@ -741,7 +741,11 @@
g_idle_add (start_cb, processor);
}
} else {
+ /* We set the state here because it is not set in the
+ * processor otherwise.
+ */
g_message ("Running in read-only mode, not starting crawler/indexing");
+ tracker_status_set_and_signal (TRACKER_STATUS_IDLE);
}
if (is_running) {
@@ -754,7 +758,7 @@
/*
* Shutdown the daemon
*/
- tracker_status_set (TRACKER_STATUS_SHUTDOWN);
+ tracker_status_set_and_signal (TRACKER_STATUS_SHUTDOWN);
/* Set kill timeout */
g_timeout_add_full (G_PRIORITY_LOW, 5000, shutdown_timeout_cb, NULL, NULL);
@@ -797,8 +801,7 @@
{
is_running = FALSE;
- /* Stop any tight loop operations */
-/* tracker_processor_stop ();*/
+ /* FIXME: Should we stop the crawler? */
g_main_loop_quit (main_loop);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]