[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.34, 1.35

cras at procontrol.fi cras at procontrol.fi
Mon Jul 5 00:10:34 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv30922/lib-index

Modified Files:
	mail-index-sync-update.c 
Log Message:
header and extra_rec syncing crashed because of recent changes.



Index: mail-index-sync-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- mail-index-sync-update.c	4 Jul 2004 20:00:47 -0000	1.34
+++ mail-index-sync-update.c	4 Jul 2004 21:10:32 -0000	1.35
@@ -258,10 +258,10 @@
 static int sync_header_update(const struct mail_transaction_header_update *u,
 			      void *context)
 {
-	struct mail_index_view *view = context;
+        struct mail_index_sync_ctx *sync_ctx = context;
 	void *data;
 
-	data = PTR_OFFSET(&view->map->hdr_copy, u->offset);
+	data = PTR_OFFSET(&sync_ctx->view->map->hdr_copy, u->offset);
 	memcpy(data, u->data, u->size);
 	return 1;
 }
@@ -271,7 +271,8 @@
 		      const struct mail_transaction_extra_rec_update *u,
 		      void *context)
 {
-	struct mail_index_view *view = context;
+        struct mail_index_sync_ctx *sync_ctx = context;
+	struct mail_index_view *view = sync_ctx->view;
 	struct mail_index_record *rec;
 	uint32_t seq;
 	uint16_t offset, size;



More information about the dovecot-cvs mailing list