[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[Tracker] [PATCH] fixing some bad misbehavior
- From: "Marcus Fritzsch" <fritschy googlemail com>
- To: Tracker-List <tracker-list gnome org>
- Subject: [Tracker] [PATCH] fixing some bad misbehavior
- Date: Tue, 24 Jul 2007 16:17:01 +0200
Hi there,
as the new crawling is there I wanted to try it for my NFS exports
over the net, the problem: it did not worked, the crawled directories
were on the crawled directories list, but were never checked on start
- this is one part.
The other part: when removing $HOME from WatchDirectoryRoots (also,
this 'disables' the t-p preferences checkbox), $HOME is added to the
watched directories if this list is empty (and so is indexed later
on).
Kind regards, Marcus
PS: is this the right place to add a check for the crawled directories?!
diff --git a/src/trackerd/trackerd.c b/src/trackerd/trackerd.c
index a85fcf2..db381b4 100644
--- a/src/trackerd/trackerd.c
+++ b/src/trackerd/trackerd.c
@@ -1066,6 +1066,14 @@ process_files_thread (void)
tracker->dir_list = NULL;
}
+ g_slist_foreach (tracker->crawl_directory_list, (GFunc) schedule_dir_check, db_con);
+
+ if (tracker->crawl_directory_list) {
+ g_slist_foreach (tracker->crawl_directory_list, (GFunc) g_free, NULL);
+ g_slist_free (tracker->crawl_directory_list);
+ tracker->crawl_directory_list = NULL;
+ }
+
g_slist_foreach (tracker->watch_directory_roots_list, (GFunc) schedule_dir_check, db_con);
if (tracker->dir_list) {
@@ -1933,10 +1941,6 @@ sanity_check_option_values ()
tracker_set_language (tracker->language, TRUE);
}
- if (!tracker->watch_directory_roots_list) {
- tracker->watch_directory_roots_list = g_slist_prepend (tracker->watch_directory_roots_list, g_strdup (g_get_home_dir()));
- }
-
if (tracker->throttle > 20) {
tracker->throttle = 20;
} else if (tracker->throttle < 0) {
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]