[dovecot-cvs] dovecot/src/lib-storage/index index-transaction.c, 1.12, 1.13

cras at dovecot.org cras at dovecot.org
Sat Dec 10 20:56:06 EET 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv30491/lib-storage/index

Modified Files:
	index-transaction.c 
Log Message:
Added module_contexts to transactions.



Index: index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-transaction.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- index-transaction.c	15 Mar 2005 19:01:52 -0000	1.12
+++ index-transaction.c	10 Dec 2005 18:56:03 -0000	1.13
@@ -1,6 +1,7 @@
 /* Copyright (C) 2003 Timo Sirainen */
 
 #include "lib.h"
+#include "array.h"
 #include "index-storage.h"
 #include "index-mail.h"
 
@@ -12,6 +13,9 @@
 	t->ibox = ibox;
 	t->flags = flags;
 
+	array_create(&t->mailbox_ctx.module_contexts, default_pool,
+		     sizeof(void *), 5);
+
 	t->trans = mail_index_transaction_begin(ibox->view,
 		(flags & MAILBOX_TRANSACTION_FLAG_HIDE) != 0,
 		(flags & MAILBOX_TRANSACTION_FLAG_EXTERNAL) != 0);
@@ -25,6 +29,7 @@
 	mail_cache_view_close(t->cache_view);
 	mail_index_view_close(t->trans_view);
 	mail_index_view_unlock(t->ibox->view);
+	array_free(&t->mailbox_ctx.module_contexts);
 	i_free(t);
 }
 



More information about the dovecot-cvs mailing list