[tracker-miners/wip/carlosg/ci-fixes: 45/45] tracker-extract: Always query next items
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/ci-fixes: 45/45] tracker-extract: Always query next items
- Date: Sun, 25 Oct 2020 14:15:12 +0000 (UTC)
commit 71246b1eb755e97d43d2e27a9ca25c4c54b7c848
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 24 20:32:50 2020 +0200
tracker-extract: Always query next items
Leave n-items for informational purposes, and always try to fetch
a next item to extract. If there's none, we'll receive the appropriate
error and stop.
src/tracker-extract/tracker-extract-decorator.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 2a856acf4..9e6c1816b 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -310,7 +310,6 @@ static void
decorator_get_next_file (TrackerDecorator *decorator)
{
TrackerExtractDecoratorPrivate *priv;
- guint available_items;
priv = tracker_extract_decorator_get_instance_private (TRACKER_EXTRACT_DECORATOR (decorator));
@@ -318,11 +317,8 @@ decorator_get_next_file (TrackerDecorator *decorator)
tracker_miner_is_paused (TRACKER_MINER (decorator)))
return;
- available_items = tracker_decorator_get_n_items (decorator);
- while (priv->n_extracting_files < MAX_EXTRACTING_FILES &&
- available_items > 0) {
+ while (priv->n_extracting_files < MAX_EXTRACTING_FILES) {
priv->n_extracting_files++;
- available_items--;
tracker_decorator_next (decorator, NULL,
(GAsyncReadyCallback) decorator_next_item_cb,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]