[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.40, 1.41

cras at dovecot.org cras at dovecot.org
Fri Sep 3 23:19:21 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv28622/lib-index

Modified Files:
	mail-index-sync-update.c 
Log Message:
fix



Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- mail-index-sync-update.c	3 Sep 2004 20:16:51 -0000	1.40
+++ mail-index-sync-update.c	3 Sep 2004 20:19:18 -0000	1.41
@@ -464,7 +464,12 @@
 				ret = -1;
 				break;
 			}
-			map = index->map;
+			if (map != index->map) {
+				map = index->map;
+				mail_index_unmap(view->index, view->map);
+				view->map = map;
+				view->map->refcount++;
+			}
 		}
 
 		if (mail_transaction_map(index, hdr, data,



More information about the dovecot-cvs mailing list