[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.64,
1.65
cras at dovecot.org
cras at dovecot.org
Fri Oct 15 01:16:46 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv15386/lib-index
Modified Files:
mail-transaction-log.c
Log Message:
Log syncing fixes
Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- mail-transaction-log.c 10 Oct 2004 22:58:00 -0000 1.64
+++ mail-transaction-log.c 14 Oct 2004 22:16:43 -0000 1.65
@@ -742,11 +742,11 @@
size = read_offset - file->buffer_offset;
buffer_set_used_size(file->buffer, size);
-
- if (mail_transaction_log_file_sync(file) < 0)
- return -1;
} while (ret > 0 || (ret < 0 && errno == EINTR));
+ if (mail_transaction_log_file_sync(file) < 0)
+ return -1;
+
if (ret == 0) {
/* EOF */
buffer_set_used_size(file->buffer,
@@ -812,6 +812,8 @@
file->buffer_offset <= start_offset) {
/* it's all mmaped already */
i_assert(end_offset == (uoff_t)-1);
+ if (mail_transaction_log_file_sync(file) < 0)
+ return -1;
return 1;
}
More information about the dovecot-cvs
mailing list