[dovecot-cvs] dovecot/src/lib-index mail-index-fsck.c, 1.31, 1.32 mail-index-sync.c, 1.80, 1.81

tss at dovecot.org tss at dovecot.org
Tue Jan 23 13:30:36 UTC 2007


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

Modified Files:
	mail-index-fsck.c mail-index-sync.c 
Log Message:
Log a warning when we're starting fsck. Log error before calling fsck.



Index: mail-index-fsck.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-fsck.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- mail-index-fsck.c	17 Jan 2007 18:45:43 -0000	1.31
+++ mail-index-fsck.c	23 Jan 2007 13:30:30 -0000	1.32
@@ -159,6 +159,7 @@
 		return 1;
 	}
 
+	i_warning("fscking index file %s", index->filepath);
         lock_log = !index->log_locked;
 	if (lock_log) {
 		if (mail_transaction_log_sync_lock(index->log, &file_seq,

Index: mail-index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- mail-index-sync.c	12 Nov 2006 15:20:36 -0000	1.80
+++ mail-index-sync.c	23 Jan 2007 13:30:30 -0000	1.81
@@ -389,6 +389,7 @@
 	     				index->hdr->log_file_seq,
 					index->hdr->log_file_ext_offset))) {
 		/* broken sync positions. fix them. */
+		mail_index_set_error(index, "broken sync positions");
 		if (mail_index_fsck(index) <= 0) {
 			mail_index_unlock(index, lock_id);
 			mail_transaction_log_sync_unlock(index->log);



More information about the dovecot-cvs mailing list