[PATCH] Don't reset time on sent events
- From: Martin Wehner <martin wehner epost de>
- To: gnome-vfs-list <gnome-vfs-list gnome org>
- Subject: [PATCH] Don't reset time on sent events
- Date: Wed, 06 Oct 2004 07:53:38 +0200
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]