dovecot: Removed unused MAILDIR_UIDLIST_SYNC_ORDERED flag.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 4 05:10:31 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/36056f044f1f
changeset: 5892:36056f044f1f
user: Timo Sirainen <tss at iki.fi>
date: Wed Jul 04 05:10:21 2007 +0300
description:
Removed unused MAILDIR_UIDLIST_SYNC_ORDERED flag.
diffstat:
2 files changed, 3 insertions(+), 6 deletions(-)
src/lib-storage/index/maildir/maildir-uidlist.c | 6 ++----
src/lib-storage/index/maildir/maildir-uidlist.h | 3 +--
diffs (29 lines):
diff -r db959f0d94e3 -r 36056f044f1f src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Wed Jul 04 05:07:48 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Wed Jul 04 05:10:21 2007 +0300
@@ -903,10 +903,8 @@ static void maildir_uidlist_assign_uids(
recs = array_get_modifiable(&ctx->uidlist->records, &count);
/* sort new files and assign UIDs for them */
- if ((ctx->sync_flags & MAILDIR_UIDLIST_SYNC_ORDERED) == 0) {
- qsort(recs + first_new_pos, count - first_new_pos,
- sizeof(*recs), maildir_time_cmp);
- }
+ qsort(recs + first_new_pos, count - first_new_pos,
+ sizeof(*recs), maildir_time_cmp);
for (dest = first_new_pos; dest < count; dest++) {
i_assert(recs[dest]->uid == (uint32_t)-1);
recs[dest]->uid = ctx->uidlist->next_uid++;
diff -r db959f0d94e3 -r 36056f044f1f src/lib-storage/index/maildir/maildir-uidlist.h
--- a/src/lib-storage/index/maildir/maildir-uidlist.h Wed Jul 04 05:07:48 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.h Wed Jul 04 05:10:21 2007 +0300
@@ -6,8 +6,7 @@ struct maildir_uidlist_sync_ctx;
struct maildir_uidlist_sync_ctx;
enum maildir_uidlist_sync_flags {
- MAILDIR_UIDLIST_SYNC_PARTIAL = 0x01,
- MAILDIR_UIDLIST_SYNC_ORDERED = 0x02
+ MAILDIR_UIDLIST_SYNC_PARTIAL = 0x01
};
enum maildir_uidlist_rec_flag {
More information about the dovecot-cvs
mailing list