[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Tracker] Any oustanding patches I have missed?
- From: "Tshepang Lekhonkhobe" <tshepang gmail com>
- To: jamie <jamiemcc blueyonder co uk>
- Cc: Tracker-List <tracker-list gnome org>
- Subject: Re: [Tracker] Any oustanding patches I have missed?
- Date: Wed, 4 Jul 2007 10:04:32 +0200
On 7/1/07, jamie <jamiemcc blueyonder co uk> wrote:
Speak up now!
jamie.
You missed a patch adding an option to run trackerd in low memory mode
via the tracker.cfg. I currently don't have the facility to provide an
updated patch but please look at it.
--
my place on the web:
floss-and-misc.blogspot.com
Index: ChangeLog
===================================================================
--- ChangeLog (revision 587)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2007-05-11 Tshepang Lekhonkhobe <tshepang gmail com>
+
+ * src/trackerd/trackerd-utils.c: Add --low-memory option to config file
+ * README: added the rest of the command line options
+
+
2007-05-07 Jamie McCracken <jamiemcc at gnome org>
* bug fix for crashers in gaim indexing
Index: src/trackerd/tracker-utils.c
===================================================================
--- src/trackerd/tracker-utils.c (revision 587)
+++ src/trackerd/tracker-utils.c (working copy)
@@ -2159,7 +2159,9 @@ tracker_load_config_file ()
contents = g_strconcat (
"[General]\n",
"# Log Verbosity - Valid values are 0 (displays/logs only errors), 1 (minimal), 2 (detailed), and 3 (debug)\n",
- "Verbosity=0\n\n",
+ "Verbosity=0\n",
+ "# Minimizes the use of memory but may slow indexing down\n",
+ "Low memory mode=false\n\n",
"[Watches]\n",
"# List of directory roots to index and watch seperated by semicolons\n",
"WatchDirectoryRoots=", g_get_home_dir (), ";\n",
@@ -2219,6 +2221,17 @@ tracker_load_config_file ()
tracker->verbosity = g_key_file_get_integer (key_file, "General", "Verbosity", NULL);
}
+ if (g_key_file_has_key (key_file, "General", "Low memory mode", NULL)) {
+ tracker->use_extra_memory = g_key_file_get_boolean (key_file, "General", "Low memory mode", NULL);
+ }
+
+ if (tracker->use_extra_memory) {
+ tracker->use_extra_memory = FALSE;
+ }
+
+ else {
+ tracker->use_extra_memory = TRUE;
+ }
/* Watch options */
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]