[dovecot-cvs] dovecot/src/lib-index mail-index-fsck.c, 1.30.2.1, 1.30.2.2 mail-index-sync.c, 1.72.2.3, 1.72.2.4

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


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

Modified Files:
      Tag: branch_1_0
	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.30.2.1
retrieving revision 1.30.2.2
diff -u -d -r1.30.2.1 -r1.30.2.2
--- mail-index-fsck.c	17 Jan 2007 18:45:41 -0000	1.30.2.1
+++ mail-index-fsck.c	23 Jan 2007 13:30:27 -0000	1.30.2.2
@@ -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.72.2.3
retrieving revision 1.72.2.4
diff -u -d -r1.72.2.3 -r1.72.2.4
--- mail-index-sync.c	12 Nov 2006 15:20:35 -0000	1.72.2.3
+++ mail-index-sync.c	23 Jan 2007 13:30:27 -0000	1.72.2.4
@@ -393,6 +393,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