[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.45, 1.46

cras at dovecot.org cras at dovecot.org
Sun Jan 23 00:34:25 EET 2005


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

Modified Files:
	mail-index-transaction.c 
Log Message:
extra assert to make sure struct mail_keywords isn't tries to be used
between multiple indexes.



Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- mail-index-transaction.c	22 Jan 2005 22:21:45 -0000	1.45
+++ mail-index-transaction.c	22 Jan 2005 22:34:23 -0000	1.46
@@ -929,6 +929,7 @@
 		 (seq <= mail_index_view_get_messages_count(t->view) ||
 		  seq <= t->last_new_seq));
 	i_assert(keywords->count > 0 || modify_type == MODIFY_REPLACE);
+	i_assert(keywords->kt->transaction->view->index == t->view->index);
 
 	for (kt = keywords->kt; kt != NULL; kt = kt->next) {
 		if (kt->transaction == t &&



More information about the dovecot-cvs mailing list