[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.111.2.6, 1.111.2.7

tss at dovecot.org tss at dovecot.org
Tue Jan 16 22:39:49 UTC 2007


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

Modified Files:
      Tag: branch_1_0
	mail-transaction-log.c 
Log Message:
And now really fix the log rotation race.



Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.111.2.6
retrieving revision 1.111.2.7
diff -u -d -r1.111.2.6 -r1.111.2.7
--- mail-transaction-log.c	16 Jan 2007 21:58:48 -0000	1.111.2.6
+++ mail-transaction-log.c	16 Jan 2007 22:39:47 -0000	1.111.2.7
@@ -551,7 +551,10 @@
 	}
 
 	if (lock) {
-		if (mail_transaction_log_file_lock(file) < 0)
+		file->fd = new_fd;
+		ret = mail_transaction_log_file_lock(file);
+		file->fd = -1;
+		if (ret < 0)
 			return -1;
 	}
 



More information about the dovecot-cvs mailing list