[tracker-miners/wip/carlosg/timeouts-and-stuff: 4/4] libtracker-miner: Check there's no other active operations
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/timeouts-and-stuff: 4/4] libtracker-miner: Check there's no other active operations
- Date: Thu, 2 Jul 2020 16:40:03 +0000 (UTC)
commit f1983a2d64feddfe1a0fe5247251af07bf436eeb
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]