[tracker-miners/wip/carlosg/timeouts-and-stuff: 5/5] libtracker-miner: Check there's no other active operations



commit 7e804a0c62c7a9c5a86b3a710d5856e4e1d110ee
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jul 2 16:48:26 2020 +0200

    libtracker-miner: Check there's no other active operations
    
    This function is called from monitor operations, and relies that there's
    no previous operations being handled. This might well not be true, so
    ensure the queues are idle before going ahead.

 src/libtracker-miner/tracker-file-notifier.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 415ef0e78..987b1a8f3 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -894,7 +894,8 @@ notifier_queue_root (TrackerFileNotifier   *notifier,
                priv->pending_index_roots = g_list_append (priv->pending_index_roots, data);
        }
 
-       notifier_check_next_root (notifier);
+       if (!priv->current_index_root)
+               notifier_check_next_root (notifier);
 }
 
 /* This function ensures to issue ::file-created for all


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]