dovecot-1.2: Thread index: Minor optimization.

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 1 15:31:23 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/920c1ca3a8db
changeset: 8148:920c1ca3a8db
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 01 15:31:20 2008 +0300
description:
Thread index: Minor optimization.

diffstat:

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

diffs (16 lines):

diff -r b7e097200892 -r 920c1ca3a8db src/lib-storage/index/index-thread.c
--- a/src/lib-storage/index/index-thread.c	Mon Sep 01 15:30:40 2008 +0300
+++ b/src/lib-storage/index/index-thread.c	Mon Sep 01 15:31:20 2008 +0300
@@ -430,11 +430,11 @@ static void mail_thread_cache_update_add
 
 	/* everything removed successfully, add the new messages. all of them
 	   should already be in msgid_map. */
-	msgid_map = array_get(tbox->msgid_map, &map_count);
 	uids = array_get(added_uids, &uid_count);
 	if (uid_count == 0)
 		return;
 
+	msgid_map = array_get(tbox->msgid_map, &map_count);
 	(void)bsearch_insert_pos(&uids[0].seq1, msgid_map, map_count,
 				 sizeof(*msgid_map), msgid_map_cmp, &j);
 	i_assert(j < map_count);


More information about the dovecot-cvs mailing list