[dovecot-cvs] dovecot/src/lib-index mail-cache-transaction.c, 1.25, 1.26

cras at dovecot.org cras at dovecot.org
Sat Sep 11 18:40:24 EEST 2004


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

Modified Files:
	mail-cache-transaction.c 
Log Message:
one more "cache file reopened" fix.



Index: mail-cache-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-transaction.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- mail-cache-transaction.c	11 Sep 2004 15:33:29 -0000	1.25
+++ mail-cache-transaction.c	11 Sep 2004 15:40:22 -0000	1.26
@@ -379,6 +379,12 @@
 		buffer_set_used_size(ctx->cache_data, ctx->prev_pos);
 	}
 
+	if (ctx->cache_file_seq != ctx->cache->hdr->file_seq) {
+		/* cache file reopened - need to abort */
+		mail_cache_transaction_reset(ctx);
+		return 0;
+	}
+
 	rec = buffer_get_data(ctx->cache_data, &size);
 	i_assert(ctx->prev_pos <= size);
 



More information about the dovecot-cvs mailing list