[tracker-miners/wip/carlosg/proceed-on-folder-errors] libtracker-miner: Proceed to next folder in root after errors
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/proceed-on-folder-errors] libtracker-miner: Proceed to next folder in root after errors
- Date: Tue, 1 Dec 2020 11:18:13 +0000 (UTC)
commit 93435011c9826210206ee891908797d57c2d037a
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Dec 1 12:14:30 2020 +0100
libtracker-miner: Proceed to next folder in root after errors
When getting error on a folder, we just want to grind the index
root indexing to a halt when interrupted. Jumping directly to the
next root is a weird middle ground in that it goes ahead and
notifies as if finished, but then proceeds checking the missing
folders.
Let it maybe continue to the next folder in the root (unless
interrupted) so the whole index root is indexed (minus the failing
folder).
src/libtracker-miner/tracker-file-notifier.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 5e56e381d..de703774f 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -497,7 +497,10 @@ crawler_get_cb (TrackerCrawler *crawler,
g_free (uri);
}
tracker_monitor_remove (priv->monitor, directory);
- finish_current_directory (notifier, interrupted);
+
+ if (interrupted || !crawl_directory_in_current_root (notifier))
+ finish_current_directory (notifier, interrupted);
+
g_clear_error (&error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]