[dovecot-cvs]
dovecot/src/imap imap-sort.c, 1.12, 1.13 imap-thread.c, 1.9, 1.10
cras at dovecot.org
cras at dovecot.org
Sat Jul 10 14:15:01 EEST 2004
Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv1898/imap
Modified Files:
imap-sort.c imap-thread.c
Log Message:
thread/sort: commit the transaction, don't rollback..
Index: imap-sort.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-sort.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- imap-sort.c 24 May 2004 22:35:55 -0000 1.12
+++ imap-sort.c 10 Jul 2004 11:14:58 -0000 1.13
@@ -250,7 +250,8 @@
mail_sort_flush(ctx);
ret = mailbox_search_deinit(ctx->search_ctx);
- mailbox_transaction_rollback(ctx->t);
+ if (mailbox_transaction_commit(ctx->t) < 0)
+ ret = -1;
if (ctx->written || ret == 0) {
str_append(ctx->str, "\r\n");
Index: imap-thread.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-thread.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- imap-thread.c 16 May 2004 23:11:17 -0000 1.9
+++ imap-thread.c 10 Jul 2004 11:14:58 -0000 1.10
@@ -147,7 +147,8 @@
o_stream_send_str(client->output, "\r\n");
ret = mailbox_search_deinit(ctx->search_ctx);
- mailbox_transaction_rollback(ctx->t);
+ if (mailbox_transaction_commit(ctx->t) < 0)
+ ret = -1;
mail_thread_deinit(ctx);
return ret;
}
More information about the dovecot-cvs
mailing list