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

tss at dovecot.org tss at dovecot.org
Wed Mar 7 02:44:35 EET 2007


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

Modified Files:
      Tag: branch_1_0
	mail-transaction-log-append.c 
Log Message:
If write fails with "not enough space" error, log it instead of silently
handling it.



Index: mail-transaction-log-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log-append.c,v
retrieving revision 1.17.2.2
retrieving revision 1.17.2.3
diff -u -d -r1.17.2.2 -r1.17.2.3
--- mail-transaction-log-append.c	16 Jan 2007 21:58:48 -0000	1.17.2.2
+++ mail-transaction-log-append.c	7 Mar 2007 00:44:33 -0000	1.17.2.3
@@ -75,12 +75,11 @@
 		} while (0);
 
 		/* write failure. */
-		if (!ENOSPACE(errno)) {
-			mail_index_file_set_syscall_error(file->log->index,
-							  file->filepath,
-							  "pwrite_full()");
+		mail_index_file_set_syscall_error(file->log->index,
+						  file->filepath,
+						  "pwrite_full()");
+		if (!ENOSPACE(errno))
 			return -1;
-		}
 
 		/* not enough space. fallback to in-memory indexes. */
 		if (mail_index_move_to_memory(file->log->index) < 0)



More information about the dovecot-cvs mailing list