[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.109, 1.110

tss at dovecot.org tss at dovecot.org
Tue Apr 17 20:18:07 EEST 2007


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

Modified Files:
	mbox-save.c 
Log Message:
Fixed mailbox_transaction_commit_get_uids() to actually work and not just
crash.



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- mbox-save.c	17 Apr 2007 16:40:58 -0000	1.109
+++ mbox-save.c	17 Apr 2007 17:18:04 -0000	1.110
@@ -200,7 +200,7 @@
 	ctx->synced = TRUE;
 	t->mbox_modified = TRUE;
 
-	t->ictx.first_saved_uid = ctx->next_uid;
+	*t->ictx.first_saved_uid = ctx->next_uid;
 
 	mail_index_view_close(&view);
 }
@@ -650,7 +650,7 @@
 				&sync_size, sizeof(sync_size), TRUE);
 		}
 
-		t->ictx.last_saved_uid = ctx->next_uid - 1;
+		*t->ictx.last_saved_uid = ctx->next_uid - 1;
 	}
 
 	if (!ctx->synced && ctx->mbox->mbox_fd != -1 &&



More information about the dovecot-cvs mailing list