[dovecot-cvs] dovecot/src/lib-index mail-index-sync.c,1.62,1.63
cras at dovecot.org
cras at dovecot.org
Wed Dec 21 20:37:26 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv30645
Modified Files:
mail-index-sync.c
Log Message:
ext_offsets can be higher than int_offsets, so check its validity instead
before starting syncing.
Index: mail-index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mail-index-sync.c 4 Jul 2005 11:32:20 -0000 1.62
+++ mail-index-sync.c 21 Dec 2005 18:37:23 -0000 1.63
@@ -368,12 +368,12 @@
mail_index_view_close(dummy_view);
if (index->hdr->log_file_seq == seq &&
- index->hdr->log_file_int_offset > offset) {
+ index->hdr->log_file_ext_offset > offset) {
/* synced offset is greater than what we have available.
the log sequences have gotten messed up. */
mail_transaction_log_file_set_corrupted(index->log->head,
- "log_file_int_offset (%u) > log size (%"PRIuUOFF_T")",
- index->hdr->log_file_int_offset, offset);
+ "log_file_ext_offset (%u) > log size (%"PRIuUOFF_T")",
+ index->hdr->log_file_ext_offset, offset);
mail_index_sync_rollback(ctx);
return -1;
}
More information about the dovecot-cvs
mailing list