dovecot-2.2: dsync: Fixed a potential error if transaction log w...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jun 24 19:33:32 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/fa1898ef59c4
changeset: 14633:fa1898ef59c4
user: Timo Sirainen <tss at iki.fi>
date: Sun Jun 24 19:13:58 2012 +0300
description:
dsync: Fixed a potential error if transaction log was completely empty.
diffstat:
src/doveadm/dsync/dsync-transaction-log-scan.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 932ec9940568 -r fa1898ef59c4 src/doveadm/dsync/dsync-transaction-log-scan.c
--- a/src/doveadm/dsync/dsync-transaction-log-scan.c Sun Jun 24 19:12:26 2012 +0300
+++ b/src/doveadm/dsync/dsync-transaction-log-scan.c Sun Jun 24 19:13:58 2012 +0300
@@ -358,6 +358,9 @@
max_seq = view->log_file_expunge_seq;
max_offset = view->log_file_expunge_offset;
+ mail_transaction_log_view_get_prev_pos(log_view, &file_seq,
+ &file_offset);
+
while (mail_transaction_log_view_next(log_view, &hdr, &data) > 0) {
mail_transaction_log_view_get_prev_pos(log_view, &file_seq,
&file_offset);
More information about the dovecot-cvs
mailing list