[dovecot-cvs] dovecot/src/lib-index mail-transaction-log-append.c, 1.11, 1.12

cras at dovecot.org cras at dovecot.org
Thu Aug 18 19:55:28 EEST 2005


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

Modified Files:
	mail-transaction-log-append.c 
Log Message:
Removed fsync() call when appending to transaction log file. It's not all
that important and just slows down.



Index: mail-transaction-log-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log-append.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mail-transaction-log-append.c	4 Jul 2005 11:32:20 -0000	1.11
+++ mail-transaction-log-append.c	18 Aug 2005 16:55:25 -0000	1.12
@@ -470,15 +470,6 @@
 	}
 
 	if (!MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file)) {
-		if (ret == 0 && fsync(file->fd) < 0) {
-			/* we don't know how much of it got written,
-			   it may be corrupted now.. */
-			mail_index_file_set_syscall_error(log->index,
-							  file->filepath,
-							  "fsync()");
-			ret = -1;
-		}
-
 		if (ret == 0 && file->first_append_size != 0) {
 			/* synced - rewrite first record's header */
 			ret = pwrite_full(file->fd, &file->first_append_size,



More information about the dovecot-cvs mailing list