Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3249:c913cf1dfb08 HEAD
SORT might have crashed just before finishing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 29 Mar 2005 19:52:57 +0300 |
parents | ff47e78ad717 |
children | 3b820e59610e |
files | src/imap/imap-sort.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-sort.c Tue Mar 29 19:48:42 2005 +0300 +++ b/src/imap/imap-sort.c Tue Mar 29 19:52:57 2005 +0300 @@ -247,12 +247,12 @@ while (mailbox_search_next(ctx->search_ctx, mail) > 0) mail_sort_input(ctx, mail); + mail_sort_flush(ctx); + ret = mailbox_search_deinit(ctx->search_ctx); + mail_free(mail); mail_free(ctx->other_mail); - mail_sort_flush(ctx); - ret = mailbox_search_deinit(ctx->search_ctx); - if (mailbox_transaction_commit(ctx->t, 0) < 0) ret = -1;