changeset 3025:44c5e8c50ad4 HEAD

we synced one message more than necessary when we were applying changes.
author Timo Sirainen <tss@iki.fi>
date Wed, 29 Dec 2004 18:28:31 +0200
parents 8939c2d75a89
children 80f7050c8bb5
files src/lib-storage/index/mbox/mbox-sync.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c	Wed Dec 29 17:48:54 2004 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Wed Dec 29 18:28:31 2004 +0200
@@ -903,7 +903,9 @@
 					return -1;
 			}
 		} else if (sync_ctx->seq >= min_message_count) {
-			mbox_sync_buffer_delete_old(sync_ctx->syncs, uid);
+			/* +1 because we want to delete sync records
+			   from the current UID as well */
+			mbox_sync_buffer_delete_old(sync_ctx->syncs, uid+1);
 			if (buffer_get_used_size(sync_ctx->syncs) == 0) {
 				/* if there's no sync records left,
 				   we can stop */