[tracker-miners/tracker-miners-3.0: 1/4] tracker-extract: Always query next items
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/tracker-miners-3.0: 1/4] tracker-extract: Always query next items
- Date: Fri, 30 Oct 2020 19:55:50 +0000 (UTC)
commit 084d4aacb5954966f73b2a85c2b838a946db3c3a
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 c65156015..b338168a6 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -322,7 +322,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));
@@ -330,11 +329,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]