[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-save.c, 1.11, 1.12

cras at dovecot.org cras at dovecot.org
Thu Jun 8 20:14:29 EEST 2006


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

Modified Files:
	dbox-save.c 
Log Message:
Saving to multiple files within a transaction was broken.



Index: dbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-save.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- dbox-save.c	9 May 2006 11:57:37 -0000	1.11
+++ dbox-save.c	8 Jun 2006 17:14:27 -0000	1.12
@@ -349,13 +349,13 @@
 
 		file = dbox_uidlist_append_lookup_file(ctx->append_ctx,
 						       file_seq);
-		if (pwrite_full(ctx->file->fd, hdr.uid_hex,
+		if (pwrite_full(file->fd, hdr.uid_hex,
 				sizeof(hdr.uid_hex), offset +
 				offsetof(struct dbox_mail_header,
 					 uid_hex)) < 0) {
 			mail_storage_set_critical(STORAGE(ctx->mbox->storage),
 						  "pwrite_full(%s) failed: %m",
-						  ctx->file->path);
+						  file->path);
 			ctx->failed = TRUE;
                         dbox_transaction_save_rollback(ctx);
 			return -1;



More information about the dovecot-cvs mailing list