[dovecot-cvs] dovecot/src/lib-storage/index index-transaction.c, 1.9, 1.10

cras at dovecot.org cras at dovecot.org
Fri Sep 3 21:33:28 EEST 2004


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

Modified Files:
	index-transaction.c 
Log Message:
Fix for error handling.



Index: index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-transaction.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- index-transaction.c	10 Jul 2004 11:15:42 -0000	1.9
+++ index-transaction.c	3 Sep 2004 18:33:26 -0000	1.10
@@ -36,10 +36,11 @@
 	ret = mail_index_transaction_commit(t->trans, &seq, &offset);
 	if (ret < 0)
 		mail_storage_set_index_error(t->ibox);
-
-	if (seq != 0) {
-		t->ibox->commit_log_file_seq = seq;
-		t->ibox->commit_log_file_offset = offset;
+	else {
+		if (seq != 0) {
+			t->ibox->commit_log_file_seq = seq;
+			t->ibox->commit_log_file_offset = offset;
+		}
 	}
 
 	index_transaction_free(t);



More information about the dovecot-cvs mailing list