dovecot-1.2: index: Minor optimization.

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 31 00:27:46 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/a514df3e20db
changeset: 8873:a514df3e20db
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 30 17:26:40 2009 -0400
description:
index: Minor optimization.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-view.c |    2 +-

diffs (12 lines):

diff -r 643a96aec996 -r a514df3e20db src/lib-index/mail-index-view.c
--- a/src/lib-index/mail-index-view.c	Thu Mar 26 18:36:36 2009 -0400
+++ b/src/lib-index/mail-index-view.c	Mon Mar 30 17:26:40 2009 -0400
@@ -142,7 +142,7 @@ view_lookup_full(struct mail_index_view 
 
 	/* look up the record */
 	rec = MAIL_INDEX_MAP_IDX(view->map, seq-1);
-	if (rec->uid == 0) {
+	if (unlikely(rec->uid == 0)) {
 		if (!view->inconsistent) {
 			mail_index_set_error(view->index,
 				"Corrupted Index file %s: Record [%u].uid=0",


More information about the dovecot-cvs mailing list