[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-save.c, 1.10, 1.10.2.1

cras at dovecot.org cras at dovecot.org
Thu Jun 8 19:35:06 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	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.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- dbox-save.c	3 May 2006 22:02:55 -0000	1.10
+++ dbox-save.c	8 Jun 2006 16:35:04 -0000	1.10.2.1
@@ -346,13 +346,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