[tracker/tracker-control-with-backup-and-restore] tracker-control: Disable default dbus timeout on backup/restore



commit f964acdf4bc4d83eb6433107ef3d217ed97ea851
Author: Martyn Russell <martyn lanedo com>
Date:   Tue May 3 17:01:00 2011 +0100

    tracker-control: Disable default dbus timeout on backup/restore
    
    It's quite likely backup or restore may take > 25 seconds which is the
    default timeout for dbus calls. This was causing errors when there was
    no real timeout issue.

 src/tracker-control/tracker-control-general.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-general.c b/src/tracker-control/tracker-control-general.c
index e23b36a..f4f1f90 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -627,6 +627,9 @@ tracker_control_general_run (void)
 			return EXIT_FAILURE;
 		}
 
+		/* Backup/Restore can take some time */
+		g_dbus_proxy_set_default_timeout (proxy, G_MAXINT);
+
 		v = g_dbus_proxy_call_sync (proxy,
 		                            "Save",
 		                            g_variant_new ("(s)", uri),
@@ -696,6 +699,9 @@ tracker_control_general_run (void)
 			return EXIT_FAILURE;
 		}
 
+		/* Backup/Restore can take some time */
+		g_dbus_proxy_set_default_timeout (proxy, G_MAXINT);
+
 		v = g_dbus_proxy_call_sync (proxy,
 		                            "Restore",
 		                            g_variant_new ("(s)", uri),



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