dovecot-2.0: lib-index: Don't try to stat() in-memory index.

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 23 20:26:41 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/e6076467fbf0
changeset: 12465:e6076467fbf0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 23 18:26:38 2010 +0000
description:
lib-index: Don't try to stat() in-memory index.

diffstat:

 src/lib-index/mail-transaction-log.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 464fe0e62078 -r e6076467fbf0 src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c	Tue Nov 23 17:39:19 2010 +0000
+++ b/src/lib-index/mail-transaction-log.c	Tue Nov 23 18:26:38 2010 +0000
@@ -41,6 +41,9 @@
 {
 	struct stat st;
 
+	if (MAIL_INDEX_IS_IN_MEMORY(log->index))
+		return;
+
 	if (stat(log->filepath2, &st) < 0) {
 		if (errno != ENOENT && errno != ESTALE) {
 			mail_index_set_error(log->index,


More information about the dovecot-cvs mailing list