]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- drop obsolete files
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 5 Jul 2009 17:16:58 +0000 (17:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot-sort-assert.patch -> 1.2

dovecot-sort-assert.patch [deleted file]

diff --git a/dovecot-sort-assert.patch b/dovecot-sort-assert.patch
deleted file mode 100644 (file)
index 5a73440..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-
---- a/src/lib-storage/index/index-sort.c       Tue Oct 16 17:58:03 2007 +0300
-+++ b/src/lib-storage/index/index-sort.c       Sun Oct 28 12:37:29 2007 +0200
-@@ -416,7 +416,7 @@ index_sort_add_ids_range(struct mail_sea
-                          also between the first and the last messages */
-                       skip = (last_id - prev_id) / (idx2 - i + 2);
-                       nodes[i].sort_id = prev_id + skip;
--                      if (nodes[i].sort_id == prev_id)
-+                      if (nodes[i].sort_id == prev_id && prev_id != last_id)
-                               nodes[i].sort_id++;
-                       if (nodes[i].sort_id == last_id) {
-                               /* we ran out of ID space. have to renumber
-@@ -442,12 +442,16 @@ index_sort_renumber_ids(struct mail_sear
-               (struct index_transaction_context *)program->t;
-       struct mail_sort_node *nodes;
-       unsigned int i, count;
--      uint32_t sort_id, prev_sort_id, skip;
-+      uint32_t sort_id = 0, prev_sort_id, skip;
-       nodes = array_get_modifiable(&program->all_nodes, &count);
-       prev_sort_id = (uint32_t)-1;
--      sort_id = nodes[idx].sort_id;
--      i_assert(sort_id == nodes[idx + 1].sort_id);
-+      for (; idx < count; idx++) {
-+              sort_id = nodes[idx].sort_id;
-+              if (sort_id == nodes[idx+1].sort_id)
-+                      break;
-+      }
-+      i_assert(idx != count);
-       if (((uint32_t)-1 - sort_id) / (count - idx + 1) < RENUMBER_SPACE) {
-               /* space is running out, lets just renumber everything */
-@@ -501,7 +505,7 @@ index_sort_add_ids(struct mail_search_so
-                       if (index_sort_add_ids_range(program, mail,
-                                                    i == 0 ? 0 : i-1,
-                                                    I_MIN(j, count-1)) == 0)
--                              index_sort_renumber_ids(program, i);
-+                              index_sort_renumber_ids(program, i-1);
-               }
-       }
- }
-
-
-
-
This page took 0.034521 seconds and 4 git commands to generate.