]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Don't hoard file descriptors when saving mails that are larger than mdbox_rota...
authorTimo Sirainen <tss@iki.fi>
Thu, 27 Mar 2014 13:37:10 +0000 (14:37 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 27 Mar 2014 13:37:10 +0000 (14:37 +0100)
src/lib-storage/index/dbox-multi/mdbox-map.c

index 470a450126c64101725413f3267a7e2106c2a940..1365185266cc2f6fbca7423dda6eb2cc6adbc0c3 100644 (file)
@@ -909,9 +909,6 @@ mdbox_map_find_existing_append(struct mdbox_map_append_context *ctx,
        unsigned int i, count;
        uoff_t append_offset;
 
-       if (mail_size >= map->set->mdbox_rotate_size)
-               return NULL;
-
        /* first try to use files already used in this append */
        file_appends = array_get(&ctx->file_appends, &count);
        for (i = count; i > ctx->files_nonappendable_count; i--) {