[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.26,
1.27
cras at procontrol.fi
cras at procontrol.fi
Mon May 17 02:29:30 EEST 2004
Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv2119/lib-index
Modified Files:
mail-transaction-log.c
Log Message:
Dotlocking: Don't leave the log infinitely locked after rotation
Index: mail-transaction-log.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- mail-transaction-log.c 16 May 2004 23:06:34 -0000 1.26
+++ mail-transaction-log.c 16 May 2004 23:29:27 -0000 1.27
@@ -235,6 +235,9 @@
static void
mail_transaction_log_file_close(struct mail_transaction_log_file *file)
{
+ if (file->lock_type != F_UNLCK)
+ (void)mail_transaction_log_file_lock(file, F_UNLCK);
+
if (file->buffer != NULL)
buffer_free(file->buffer);
More information about the dovecot-cvs
mailing list