[dovecot-cvs] dovecot/src/lib-index mail-index-sync.c,1.40,1.41

cras at dovecot.org cras at dovecot.org
Wed Nov 24 19:31:55 EET 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv6493/lib-index

Modified Files:
	mail-index-sync.c 
Log Message:
If we synced external transactions at the beginning of index sync, we have
to reopen the syncing view so it shows the latest updates.



Index: mail-index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- mail-index-sync.c	14 Nov 2004 01:23:21 -0000	1.40
+++ mail-index-sync.c	24 Nov 2004 17:31:53 -0000	1.41
@@ -376,6 +376,9 @@
 			return -1;
 		}
 
+		mail_index_view_close(ctx->view);
+		ctx->view = mail_index_view_open(index);
+
 		if (mail_transaction_log_view_set(ctx->view->log_view,
 					index->hdr->log_file_seq,
 					index->hdr->log_file_int_offset,



More information about the dovecot-cvs mailing list