Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8148:920c1ca3a8db HEAD
Thread index: Minor optimization.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 01 Sep 2008 15:31:20 +0300 |
parents | b7e097200892 |
children | 17cec811c5fd |
files | src/lib-storage/index/index-thread.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* 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);