]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
sort index: Removed some optimization checks that wouldn't always be true,
authorTimo Sirainen <tss@iki.fi>
Fri, 6 Jun 2008 16:40:07 +0000 (19:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 6 Jun 2008 16:40:07 +0000 (19:40 +0300)
causing bad results.

--HG--
branch : HEAD

src/lib-storage/index/index-sort-string.c

index c0a12793ccc09e754e3a3e73f65630168d82f49e..96c215284e1a9a026410c8d98edc861e54ed79bc 100644 (file)
@@ -483,8 +483,7 @@ index_sort_add_ids_range(struct sort_string_context *ctx,
        right_sort_id = nodes[right_idx].sort_id;
        /* check if all of them should have the same sort IDs. we don't want
           to hit the renumbering code in that situation. */
-       if ((left_sort_id == right_sort_id && left_sort_id != 0) ||
-           left_sort_id == (uint32_t)-1 || right_sort_id == 1) {
+       if (left_sort_id == right_sort_id && left_sort_id != 0) {
                /* they should all have the same sort ID */
                for (i = left_idx + 1; i < right_idx; i++) {
                        nodes[i].sort_id = left_sort_id;