[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.168,1.169
cras at dovecot.org
cras at dovecot.org
Thu Nov 25 01:05:04 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv11133/lib-index
Modified Files:
mail-index.c
Log Message:
When we actually read index file's header make sure it gets copied to memory
so log file offsets get updated.
Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -d -r1.168 -r1.169
--- mail-index.c 24 Nov 2004 20:42:02 -0000 1.168
+++ mail-index.c 24 Nov 2004 23:05:01 -0000 1.169
@@ -621,6 +621,12 @@
mail_index_view_close(view);
mail_transaction_log_view_close(log_view);
+ if (sync_to_index) {
+ /* make sure log file offsets get copied. most of the other
+ fields should stay the same. */
+ map->hdr = hdr;
+ }
+
index->map = NULL;
return ret < 0 ? -1 : 1;
}
More information about the dovecot-cvs
mailing list