[PATCH] Don't reset time on sent events



Currently send_uri_changes_now() resets the time on all events, not just
the unsent one. This leads to gnome-vfs never discarding old events if
new ones for the same file are flushed out, making the change queue grow
unlimited in certain scenarios (e.g. the same file getting created and
deleted over and over again).

Martin

Index: libgnomevfs/gnome-vfs-uri.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-uri.c,v
retrieving revision 1.118
diff -u -p -w -r1.118 gnome-vfs-uri.c
--- libgnomevfs/gnome-vfs-uri.c	20 Jul 2004 21:44:00 -0000	1.118
+++ libgnomevfs/gnome-vfs-uri.c	17 Sep 2004 23:25:43 -0000
@@ -1105,6 +1105,8 @@ gnome_vfs_uri_to_string (const GnomeVFSU
 	GString *string;
 	gchar *result;
 
+	g_return_val_if_fail (uri != NULL, NULL);
+
 	string = g_string_new (uri->method_string);
 	g_string_append_c (string, ':');
 


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