[tracker/tracker-0.10] libtracker-miner: Make the failed unmounts watchdog more relaxed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-miner: Make the failed unmounts watchdog more relaxed
- Date: Wed, 25 May 2011 09:15:48 +0000 (UTC)
commit a95179c134b7c869511ef97f75e8c9740318787c
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]