tracker r2127 - in branches/indexer-split: . src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2127 - in branches/indexer-split: . src/tracker-indexer
- Date: Thu, 21 Aug 2008 09:17:42 +0000 (UTC)
Author: pvanhoof
Date: Thu Aug 21 09:17:41 2008
New Revision: 2127
URL: http://svn.gnome.org/viewvc/tracker?rev=2127&view=rev
Log:
2008-08-21 Philip Van Hoof <philip codeminded be>
* src/tracker-indexer/tracker-main.c: Run forever feature for the
indexer, for debugging purposes
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/tracker-indexer/tracker-main.c
Modified: branches/indexer-split/src/tracker-indexer/tracker-main.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-main.c (original)
+++ branches/indexer-split/src/tracker-indexer/tracker-main.c Thu Aug 21 09:17:41 2008
@@ -61,6 +61,7 @@
static gint verbosity = -1;
static gboolean process_all = FALSE;
+static gboolean run_forever = FALSE;
static GOptionEntry entries[] = {
{ "verbosity", 'v', 0,
@@ -72,6 +73,11 @@
G_OPTION_ARG_NONE, &process_all,
N_("Whether to process data from all configured modules to be indexed"),
NULL },
+ { "run-forever", 'f', 0,
+ G_OPTION_ARG_NONE, &run_forever,
+ N_("Run forever, only interesting for debugging purposes"),
+ NULL },
+
{ NULL }
};
@@ -218,14 +224,17 @@
g_source_remove (quit_timeout_id);
}
- g_message ("Waiting another %d seconds for more items before quitting...",
- QUIT_TIMEOUT);
+ if (!run_forever) {
- quit_timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
- QUIT_TIMEOUT,
- quit_timeout_cb,
- g_object_ref (indexer),
- (GDestroyNotify) g_object_unref);
+ g_message ("Waiting another %d seconds for more items before quitting...",
+ QUIT_TIMEOUT);
+
+ quit_timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT,
+ QUIT_TIMEOUT,
+ quit_timeout_cb,
+ g_object_ref (indexer),
+ (GDestroyNotify) g_object_unref);
+ }
}
gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]