]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Dotlocking: Don't leave the log infinitely locked after rotation
authorTimo Sirainen <tss@iki.fi>
Sun, 16 May 2004 23:29:27 +0000 (02:29 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 16 May 2004 23:29:27 +0000 (02:29 +0300)
--HG--
branch : HEAD

src/lib-index/mail-transaction-log.c

index e931f10c73c79f4fc4b21c6e9a81d3640e050081..eb9202d4352d1b46a9bb52cdaad7dfc4032e3df6 100644 (file)
@@ -235,6 +235,9 @@ mail_transaction_log_file_lock(struct mail_transaction_log_file *file,
 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);