[tracker] libtracker-miner: Make the failed unmounts watchdog more relaxed



commit 19ac5663b173a465f1c3036cc225177f5499f2ae
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 23 17:20:42 2011 +0200

    libtracker-miner: Make the failed unmounts watchdog more relaxed
    
    The timeout priority is now lower so ::mount-unmount has a chance to
    be processed before the watchdog if the miner's main loop is busy
    (say removing monitors). Also, the timeout is longer so we aren't
    overzealous on slow unmounts.

 src/libtracker-miner/tracker-storage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-storage.c b/src/libtracker-miner/tracker-storage.c
index 319a5eb..bbf771d 100644
--- a/src/libtracker-miner/tracker-storage.c
+++ b/src/libtracker-miner/tracker-storage.c
@@ -834,7 +834,7 @@ mount_pre_removed_cb (GVolumeMonitor *monitor,
 	data->storage = storage;
 	data->mount = mount;
 
-	id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, 1,
+	id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT_IDLE + 10, 3,
 	                                 unmount_failed_cb,
 	                                 data, (GDestroyNotify) g_free);
 	g_hash_table_insert (priv->unmount_watchdogs, data->mount,



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