[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.124, 1.125
tss at dovecot.org
tss at dovecot.org
Wed Mar 7 02:47:57 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv14503
Modified Files:
mail-transaction-log.c
Log Message:
Fixed last change: Don't crash now when rotating non-locked log..
Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- mail-transaction-log.c 7 Mar 2007 00:42:32 -0000 1.124
+++ mail-transaction-log.c 7 Mar 2007 00:47:54 -0000 1.125
@@ -881,7 +881,8 @@
if (MAIL_INDEX_IS_IN_MEMORY(log->index)) {
file = mail_transaction_log_file_alloc_in_memory(log);
- file->locked = TRUE;
+ if (lock)
+ file->locked = TRUE;
} else {
/* we're locked, we shouldn't need to worry about ESTALE
problems in here. */
More information about the dovecot-cvs
mailing list