[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.80,
1.81
cras at dovecot.org
cras at dovecot.org
Sat Mar 5 21:11:21 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv16124
Modified Files:
mail-index-sync-update.c
Log Message:
We might have skipped transaction log records when syncing if log file was
just rotated.
Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- mail-index-sync-update.c 5 Feb 2005 12:01:49 -0000 1.80
+++ mail-index-sync-update.c 5 Mar 2005 19:11:19 -0000 1.81
@@ -617,7 +617,10 @@
mail_transaction_log_view_get_prev_pos(view->log_view,
&prev_seq,
&prev_offset);
- if (prev_offset < view->map->hdr.log_file_ext_offset) {
+ if (prev_seq < view->map->hdr.log_file_seq ||
+ (prev_seq == view->map->hdr.log_file_seq &&
+ prev_offset <
+ view->map->hdr.log_file_ext_offset)) {
/* we have already synced this change */
continue;
}
More information about the dovecot-cvs
mailing list