Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mail-transaction-log.h @ 5747:c71f611bbffc HEAD
Removed syncs_done array. Instead track appends and expunges separately.
Also fixed handling no-appends in some situations.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 15 Jun 2007 23:13:56 +0300 |
parents | 7aab5d99fb45 |
children | 420a386fa27a |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.h Fri Jun 15 20:53:18 2007 +0300 +++ b/src/lib-index/mail-transaction-log.h Fri Jun 15 23:13:56 2007 +0300 @@ -105,6 +105,9 @@ /* unsigned char data[]; */ }; +#define LOG_IS_BEFORE(seq1, offset1, seq2, offset2) \ + (((offset1) < (offset2) && (seq1) == (seq2)) || (seq1) < (seq2)) + struct mail_transaction_log * mail_transaction_log_alloc(struct mail_index *index); void mail_transaction_log_free(struct mail_transaction_log **log);