[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.118, 1.119

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


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

Modified Files:
	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.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- mail-transaction-log.c	16 Jan 2007 21:58:53 -0000	1.118
+++ mail-transaction-log.c	16 Jan 2007 22:39:49 -0000	1.119
@@ -545,7 +545,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