[dovecot-cvs] dovecot/src/lib-storage/index index-transaction.c, 1.4, 1.5

cras at procontrol.fi cras at procontrol.fi
Sat Jul 3 13:57:55 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv20742/lib-storage/index

Modified Files:
	index-transaction.c 
Log Message:
UIDs for appended messages can now be assigned all at once. Maildir now
updates indexes immediately while saving messages.



Index: index-transaction.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-transaction.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- index-transaction.c	22 Jun 2004 07:36:33 -0000	1.4
+++ index-transaction.c	3 Jul 2004 10:57:53 -0000	1.5
@@ -9,7 +9,7 @@
 	t->mailbox_ctx.box = &ibox->box;
 	t->ibox = ibox;
 	t->trans = mail_index_transaction_begin(ibox->view, hide);
-	t->trans_view = mail_index_transaction_get_updated_view(t->trans);
+	t->trans_view = mail_index_transaction_open_updated_view(t->trans);
 	t->cache_view = mail_cache_view_open(ibox->cache, t->trans_view);
 }
 
@@ -19,6 +19,7 @@
 		(void)mail_cache_transaction_end(t->cache_trans);
 
 	mail_cache_view_close(t->cache_view);
+	mail_index_view_close(t->trans_view);
 	mail_index_view_unlock(t->ibox->view);
 
 	if (t->fetch_mail.pool != NULL)



More information about the dovecot-cvs mailing list