Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4323:af09f5b2ce04 HEAD
Saving to multiple files within a transaction was broken.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 Jun 2006 20:14:27 +0300 |
parents | f693898fee3b |
children | 36587f382562 |
files | src/lib-storage/index/dbox/dbox-save.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-save.c Thu Jun 08 20:14:00 2006 +0300 +++ b/src/lib-storage/index/dbox/dbox-save.c Thu Jun 08 20:14:27 2006 +0300 @@ -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;