[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c, 1.93.2.9, 1.93.2.10

tss at dovecot.org tss at dovecot.org
Tue Mar 6 22:25:19 EET 2007


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

Modified Files:
      Tag: branch_1_0
	index-mail.c 
Log Message:
Changed i_unreached() to more informative i_panic().



Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.93.2.9
retrieving revision 1.93.2.10
diff -u -d -r1.93.2.9 -r1.93.2.10
--- index-mail.c	1 Feb 2007 22:34:30 -0000	1.93.2.9
+++ index-mail.c	6 Mar 2007 20:25:17 -0000	1.93.2.10
@@ -785,9 +785,11 @@
 		return -1;
 	}
 
+	/* FIXME: We get the header only to make sure the UID is valid.
+	   Remove this code once the below panic never occurs. */
 	hdr = mail_index_get_header(mail->trans->trans_view);
 	if (rec->uid >= hdr->next_uid)
-		i_unreached();
+		i_panic("uid %u >= next_uid %u", rec->uid, hdr->next_uid);
 
 	index_mail_close(mail);
 



More information about the dovecot-cvs mailing list