[dovecot-cvs] dovecot: Handle mail_transaction_log_file_map() == 0 failures.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 13 19:49:56 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/11d39b7f07ff
changeset: 5715:11d39b7f07ff
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 13 19:49:06 2007 +0300
description:
Handle mail_transaction_log_file_map() == 0 failures.
diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-transaction-log-append.c | 2 +-
src/lib-index/mail-transaction-log.c | 2 +-
diffs (24 lines):
diff -r dcf5dbb6a76a -r 11d39b7f07ff src/lib-index/mail-transaction-log-append.c
--- a/src/lib-index/mail-transaction-log-append.c Wed Jun 13 19:45:29 2007 +0300
+++ b/src/lib-index/mail-transaction-log-append.c Wed Jun 13 19:49:06 2007 +0300
@@ -413,7 +413,7 @@ mail_transaction_log_append_locked(struc
/* update sync_offset */
if (mail_transaction_log_file_map(log->head,
log->head->sync_offset,
- (uoff_t)-1) < 0)
+ (uoff_t)-1) <= 0)
return -1;
}
diff -r dcf5dbb6a76a -r 11d39b7f07ff src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c Wed Jun 13 19:45:29 2007 +0300
+++ b/src/lib-index/mail-transaction-log.c Wed Jun 13 19:49:06 2007 +0300
@@ -361,7 +361,7 @@ int mail_transaction_log_sync_lock(struc
/* update sync_offset */
if (mail_transaction_log_file_map(log->head, log->head->sync_offset,
- (uoff_t)-1) < 0) {
+ (uoff_t)-1) <= 0) {
mail_transaction_log_file_unlock(log->head);
return -1;
}
More information about the dovecot-cvs
mailing list